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/CGExprScalar.cpp b/CodeGen/CGExprScalar.cpp
index 96203f0..9c2e55f 100644
--- a/CodeGen/CGExprScalar.cpp
+++ b/CodeGen/CGExprScalar.cpp
@@ -81,7 +81,7 @@
//===--------------------------------------------------------------------===//
Value *VisitStmt(Stmt *S) {
- S->dump();
+ S->dump(CGF.getContext().SourceMgr);
assert(0 && "Stmt can't have complex result type!");
return 0;
}
@@ -374,7 +374,7 @@
Value *ScalarExprEmitter::VisitExpr(Expr *E) {
fprintf(stderr, "Unimplemented scalar expr!\n");
- E->dump();
+ E->dump(CGF.getContext().SourceMgr);
if (E->getType()->isVoidType())
return 0;
return llvm::UndefValue::get(CGF.ConvertType(E->getType()));