summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprComplex.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-01-18 01:57:54 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-01-18 01:57:54 +0000
commitc6593075bf338c0eddb1934e884983d23df2f9b4 (patch)
treed1a41b3b2ddefaf0a856c8e831d6d67a8531a67a /clang/lib/CodeGen/CGExprComplex.cpp
parent7a92e1ad3d44d2e0528d6cd5c1e99fc34a8acf2b (diff)
downloadbcm5719-llvm-c6593075bf338c0eddb1934e884983d23df2f9b4.tar.gz
bcm5719-llvm-c6593075bf338c0eddb1934e884983d23df2f9b4.zip
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. llvm-svn: 226390
Diffstat (limited to 'clang/lib/CodeGen/CGExprComplex.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprComplex.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExprComplex.cpp b/clang/lib/CodeGen/CGExprComplex.cpp
index 1580bbe6a29..2cbd42b7ee5 100644
--- a/clang/lib/CodeGen/CGExprComplex.cpp
+++ b/clang/lib/CodeGen/CGExprComplex.cpp
@@ -95,6 +95,7 @@ public:
//===--------------------------------------------------------------------===//
ComplexPairTy Visit(Expr *E) {
+ ApplyDebugLocation DL(CGF, E->getLocStart());
return StmtVisitor<ComplexExprEmitter, ComplexPairTy>::Visit(E);
}
OpenPOWER on IntegriCloud