From 0b7fad656bc574e681b46c992e1a11828b9d2bc2 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Mon, 8 Dec 2014 21:48:57 +0000 Subject: DebugInfo: Ensure the store for an assignment is attributed to the beginning of the assignment expression llvm-svn: 223699 --- clang/lib/CodeGen/CGExpr.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/CodeGen/CGExpr.cpp') diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp index 1a3a61a76dd..6ced6e18f94 100644 --- a/clang/lib/CodeGen/CGExpr.cpp +++ b/clang/lib/CodeGen/CGExpr.cpp @@ -3133,6 +3133,8 @@ LValue CodeGenFunction::EmitBinaryOperatorLValue(const BinaryOperator *E) { RValue RV = EmitAnyExpr(E->getRHS()); LValue LV = EmitCheckedLValue(E->getLHS(), TCK_Store); + if (CGDebugInfo *DI = getDebugInfo()) + DI->EmitLocation(Builder, E->getLocStart()); EmitStoreThroughLValue(RV, LV); return LV; } -- cgit v1.2.3