When dumping out errors about unsupported stuff, emit loc info.
llvm-svn: 41907
diff --git a/clang/CodeGen/CGExprAgg.cpp b/clang/CodeGen/CGExprAgg.cpp
index 7ade133..de9e2b5 100644
--- a/clang/CodeGen/CGExprAgg.cpp
+++ b/clang/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) {