aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
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/CodeGenFunction.h
parente242e8b06431da9232f444373c9601843b5a57db (diff)
downloadllvm-538deffd2d38bcc8a50deaca2d8efdd4eaf00440.zip
llvm-538deffd2d38bcc8a50deaca2d8efdd4eaf00440.tar.gz
llvm-538deffd2d38bcc8a50deaca2d8efdd4eaf00440.tar.bz2
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/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 98527b2..a80a199 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -2524,10 +2524,12 @@ public:
/// EmitComplexExprIntoLValue - Emit the given expression of complex
/// type and place its result into the specified l-value.
- void EmitComplexExprIntoLValue(const Expr *E, LValue dest, bool isInit);
+ void EmitComplexExprIntoLValue(const Expr *E, LValue dest, bool isInit,
+ SourceLocation DbgLoc = SourceLocation());
/// EmitStoreOfComplex - Store a complex number into the specified l-value.
- void EmitStoreOfComplex(ComplexPairTy V, LValue dest, bool isInit);
+ void EmitStoreOfComplex(ComplexPairTy V, LValue dest, bool isInit,
+ SourceLocation DbgLoc = SourceLocation());
/// EmitLoadOfComplex - Load a complex number from the specified l-value.
ComplexPairTy EmitLoadOfComplex(LValue src, SourceLocation loc);