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
This commit is contained in:
David Blaikie
2015-01-18 01:57:54 +00:00
parent 7a92e1ad3d
commit c6593075bf
2 changed files with 11 additions and 0 deletions

View File

@@ -95,6 +95,7 @@ public:
//===--------------------------------------------------------------------===//
ComplexPairTy Visit(Expr *E) {
ApplyDebugLocation DL(CGF, E->getLocStart());
return StmtVisitor<ComplexExprEmitter, ComplexPairTy>::Visit(E);
}