summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-12-09 21:32:00 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-12-09 21:32:00 +0000
commit93e9cf8aa43545d5ebe7ea10642eb19ec458554d (patch)
treef4367845f9e5530b652bc77ab9a7e1abaabcc21d /clang/lib/CodeGen
parentb31fba1613d98e6f3bb4fc2a906f52effa7b631a (diff)
downloadbcm5719-llvm-93e9cf8aa43545d5ebe7ea10642eb19ec458554d.tar.gz
bcm5719-llvm-93e9cf8aa43545d5ebe7ea10642eb19ec458554d.zip
DebugInfo: Correct location for compound complex assignment
llvm-svn: 223835
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGExprComplex.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGExprComplex.cpp b/clang/lib/CodeGen/CGExprComplex.cpp
index 7b7da17a3fd..2732d40093e 100644
--- a/clang/lib/CodeGen/CGExprComplex.cpp
+++ b/clang/lib/CodeGen/CGExprComplex.cpp
@@ -869,8 +869,7 @@ EmitCompoundAssignLValue(const CompoundAssignOperator *E,
// Truncate the result and store it into the LHS lvalue.
if (LHSTy->isAnyComplexType()) {
ComplexPairTy ResVal = EmitComplexToComplexCast(Result, OpInfo.Ty, LHSTy);
- // FIXME
- EmitStoreOfComplex(ResVal, LHS, /*isInit*/ false, SourceLocation());
+ EmitStoreOfComplex(ResVal, LHS, /*isInit*/ false, E->getLocStart());
Val = RValue::getComplex(ResVal);
} else {
llvm::Value *ResVal =
OpenPOWER on IntegriCloud