summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprComplex.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-12-09 21:10:43 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-12-09 21:10:43 +0000
commit8ec8dfecd1fd8feb75c340e7e1675224ae18f669 (patch)
treef7982ead4e04c1330b27dd27a871e79e3fd5da6b /clang/lib/CodeGen/CGExprComplex.cpp
parent0bfe828f7afb23d994317845d73c3eb4203acff8 (diff)
downloadbcm5719-llvm-8ec8dfecd1fd8feb75c340e7e1675224ae18f669.tar.gz
bcm5719-llvm-8ec8dfecd1fd8feb75c340e7e1675224ae18f669.zip
DebugInfo: Accurate location information for complex assignment
llvm-svn: 223828
Diffstat (limited to 'clang/lib/CodeGen/CGExprComplex.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprComplex.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGExprComplex.cpp b/clang/lib/CodeGen/CGExprComplex.cpp
index f3493bfbbe3..7b7da17a3fd 100644
--- a/clang/lib/CodeGen/CGExprComplex.cpp
+++ b/clang/lib/CodeGen/CGExprComplex.cpp
@@ -82,7 +82,7 @@ public:
/// EmitStoreOfComplex - Store the specified real/imag parts into the
/// specified value pointer.
void EmitStoreOfComplex(ComplexPairTy Val, LValue LV, bool isInit,
- SourceLocation DbgLoc = SourceLocation());
+ SourceLocation DbgLoc);
/// EmitComplexToComplexCast - Emit a cast from complex value Val to DestType.
ComplexPairTy EmitComplexToComplexCast(ComplexPairTy Val, QualType SrcType,
@@ -869,7 +869,8 @@ EmitCompoundAssignLValue(const CompoundAssignOperator *E,
// Truncate the result and store it into the LHS lvalue.
if (LHSTy->isAnyComplexType()) {
ComplexPairTy ResVal = EmitComplexToComplexCast(Result, OpInfo.Ty, LHSTy);
- EmitStoreOfComplex(ResVal, LHS, /*isInit*/ false);
+ // FIXME
+ EmitStoreOfComplex(ResVal, LHS, /*isInit*/ false, SourceLocation());
Val = RValue::getComplex(ResVal);
} else {
llvm::Value *ResVal =
@@ -914,8 +915,7 @@ LValue ComplexExprEmitter::EmitBinAssignLValue(const BinaryOperator *E,
LValue LHS = CGF.EmitLValue(E->getLHS());
// Store the result value into the LHS lvalue.
- // FIXME
- EmitStoreOfComplex(Val, LHS, /*isInit*/ false);
+ EmitStoreOfComplex(Val, LHS, /*isInit*/ false, E->getLocStart());
return LHS;
}
OpenPOWER on IntegriCloud