diff options
| author | David Blaikie <dblaikie@gmail.com> | 2015-01-18 01:57:54 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2015-01-18 01:57:54 +0000 |
| commit | ae2ddc8cbf4fbe1d70473ba333d258ae340e4910 (patch) | |
| tree | d75df66364eca1d32839096c606f2eaf79cb4ca8 /lib/CodeGen/CGExprComplex.cpp | |
| parent | bdfe947e2a42534b0538a35ad5706e1b79a8b9dc (diff) | |
| download | clang-ae2ddc8cbf4fbe1d70473ba333d258ae340e4910.tar.gz | |
DebugInfo: Attribute complex expressions to the source location of the expression
Just as r225956 did for scalar expressions (CGExprScalar::Visit), do the
same for complex expressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@226390 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprComplex.cpp')
| -rw-r--r-- | lib/CodeGen/CGExprComplex.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExprComplex.cpp b/lib/CodeGen/CGExprComplex.cpp index 1580bbe6a2..2cbd42b7ee 100644 --- a/lib/CodeGen/CGExprComplex.cpp +++ b/lib/CodeGen/CGExprComplex.cpp @@ -95,6 +95,7 @@ public: //===--------------------------------------------------------------------===// ComplexPairTy Visit(Expr *E) { + ApplyDebugLocation DL(CGF, E->getLocStart()); return StmtVisitor<ComplexExprEmitter, ComplexPairTy>::Visit(E); } |
