diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-12-09 20:52:24 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-12-09 20:52:24 +0000 |
commit | 538deffd2d38bcc8a50deaca2d8efdd4eaf00440 (patch) | |
tree | 71d9467f4d1cf7433e48f52d895fc083f7158a53 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | e242e8b06431da9232f444373c9601843b5a57db (diff) | |
download | llvm-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.h | 6 |
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); |