summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGClass.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-12-09 20:52:24 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-12-09 20:52:24 +0000
commit538deffd2d38bcc8a50deaca2d8efdd4eaf00440 (patch)
tree71d9467f4d1cf7433e48f52d895fc083f7158a53 /clang/lib/CodeGen/CGClass.cpp
parente242e8b06431da9232f444373c9601843b5a57db (diff)
downloadbcm5719-llvm-538deffd2d38bcc8a50deaca2d8efdd4eaf00440.tar.gz
bcm5719-llvm-538deffd2d38bcc8a50deaca2d8efdd4eaf00440.zip
DebugInfo: Emit the correct location for initialization of a complex variable
Especially useful for sanitizer reports. llvm-svn: 223825
Diffstat (limited to 'clang/lib/CodeGen/CGClass.cpp')
-rw-r--r--clang/lib/CodeGen/CGClass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index dfd980f6e86..5ffab603ac8 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/lib/CodeGen/CGClass.cpp
@@ -616,7 +616,7 @@ void CodeGenFunction::EmitInitializerForField(FieldDecl *Field, LValue LHS,
}
break;
case TEK_Complex:
- EmitComplexExprIntoLValue(Init, LHS, /*isInit*/ true);
+ EmitComplexExprIntoLValue(Init, LHS, /*isInit*/ true, DbgLoc);
break;
case TEK_Aggregate: {
llvm::Value *ArrayIndexVar = nullptr;
OpenPOWER on IntegriCloud