summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-01-18 01:48:19 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-01-18 01:48:19 +0000
commit01fb5fb1287552ececa992ae60062ae045a1bc5e (patch)
treec16ef6b262abbbe962984f3492c27d870f575004 /clang/lib/CodeGen/CGExprAgg.cpp
parent6adcf56b0f738f66f32b2cc70e9117049672db89 (diff)
downloadbcm5719-llvm-01fb5fb1287552ececa992ae60062ae045a1bc5e.tar.gz
bcm5719-llvm-01fb5fb1287552ececa992ae60062ae045a1bc5e.zip
DebugInfo: Attribute aggregate expressions to the source location of the expression
Just as r225956 did for scalar expressions (CGExprScalar::Visit), do the same for aggregate expressions. llvm-svn: 226388
Diffstat (limited to 'clang/lib/CodeGen/CGExprAgg.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprAgg.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp
index 4cf94c033bb..4cba4781afc 100644
--- a/clang/lib/CodeGen/CGExprAgg.cpp
+++ b/clang/lib/CodeGen/CGExprAgg.cpp
@@ -98,6 +98,11 @@ public:
// Visitor Methods
//===--------------------------------------------------------------------===//
+ void Visit(Expr *E) {
+ ApplyDebugLocation DL(CGF, E->getLocStart());
+ StmtVisitor<AggExprEmitter>::Visit(E);
+ }
+
void VisitStmt(Stmt *S) {
CGF.ErrorUnsupported(S, "aggregate expression");
}
OpenPOWER on IntegriCloud