diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-01-24 23:35:17 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-01-24 23:35:17 +0000 |
commit | 2d321fb79d86482792958341f9d6376cbcc38d97 (patch) | |
tree | 025c5416a24e71b05b00522995f41e1451d3d1a1 /clang/lib/CodeGen/CGExpr.cpp | |
parent | d2010991776a26fb1fdc6b2e49cdac1334b7af23 (diff) | |
download | bcm5719-llvm-2d321fb79d86482792958341f9d6376cbcc38d97.tar.gz bcm5719-llvm-2d321fb79d86482792958341f9d6376cbcc38d97.zip |
DebugInfo: Correct the line location of geps on array accesses
llvm-svn: 227023
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExpr.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp index 3354d3da415..6fdd1104803 100644 --- a/clang/lib/CodeGen/CGExpr.cpp +++ b/clang/lib/CodeGen/CGExpr.cpp @@ -807,6 +807,7 @@ LValue CodeGenFunction::EmitCheckedLValue(const Expr *E, TypeCheckKind TCK) { /// length type, this is not possible. /// LValue CodeGenFunction::EmitLValue(const Expr *E) { + ApplyDebugLocation DL(*this, E->getLocStart()); switch (E->getStmtClass()) { default: return EmitUnsupportedLValue(E, "l-value expression"); |