DebugInfo: Correct the line location of geps on array accesses
llvm-svn: 227023
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 3354d3d..6fdd110 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -807,6 +807,7 @@
/// 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");