From 01fb5fb1287552ececa992ae60062ae045a1bc5e Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Sun, 18 Jan 2015 01:48:19 +0000 Subject: 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 --- clang/lib/CodeGen/CGExprAgg.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'clang/lib/CodeGen/CGExprAgg.cpp') diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp index 4cf94c033bb4..4cba4781afc3 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::Visit(E); + } + void VisitStmt(Stmt *S) { CGF.ErrorUnsupported(S, "aggregate expression"); } -- cgit v1.2.3