When dumping out errors about unsupported stuff, emit loc info.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41907 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/CodeGen/CGExprAgg.cpp b/CodeGen/CGExprAgg.cpp
index 7ade133..de9e2b5 100644
--- a/CodeGen/CGExprAgg.cpp
+++ b/CodeGen/CGExprAgg.cpp
@@ -54,7 +54,7 @@
void VisitStmt(Stmt *S) {
fprintf(stderr, "Unimplemented agg expr!\n");
- S->dump();
+ S->dump(CGF.getContext().SourceMgr);
}
void VisitParenExpr(ParenExpr *PE) { Visit(PE->getSubExpr()); }
@@ -135,7 +135,7 @@
void AggExprEmitter::VisitBinaryOperator(const BinaryOperator *E) {
fprintf(stderr, "Unimplemented aggregate binary expr!\n");
- E->dump();
+ E->dump(CGF.getContext().SourceMgr);
}
void AggExprEmitter::VisitBinAssign(const BinaryOperator *E) {