swift
e225a804 - Pass correct SubExpr as source location when emitting Load of LValue.

Commit
307 days ago
Pass correct SubExpr as source location when emitting Load of LValue. When emitting an LValue of a LoadExpr during SILGen, the Expression passed as a SILLocation for the LValue was the parent LoadExpr instead of the SubExpr that contains the LValue for the load. This leads to the SILLocation to be marked as implicit, because a LoadExpr is always an implicit expression. An implicit SILLocation is not emitted when doing IRGen as it is considered to be hidden from debug info and thus we lose the debug location for the LValue of a LoadExpr. This patch fixes this issue. (cherry picked from commit 52a5ed8646faa20ae89ee7794243f48b23a9e682)
Committer
Parents
Loading