summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-12-02 01:49:16 +0000
committerChris Lattner <sabre@nondot.org>2007-12-02 01:49:16 +0000
commitf0780fae4318c38f3204d30bddf6032c5dcc8493 (patch)
treee62cc22ccb54e628308c5507b937003bb6848767 /clang/CodeGen/CGExpr.cpp
parentfc94434fafd39d8cb709a449ec1b0671559f282c (diff)
downloadbcm5719-llvm-f0780fae4318c38f3204d30bddf6032c5dcc8493.tar.gz
bcm5719-llvm-f0780fae4318c38f3204d30bddf6032c5dcc8493.zip
convert the rest of the stderr users in codegen to use diagnostics.
llvm-svn: 44503
Diffstat (limited to 'clang/CodeGen/CGExpr.cpp')
-rw-r--r--clang/CodeGen/CGExpr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/CodeGen/CGExpr.cpp b/clang/CodeGen/CGExpr.cpp
index a4aa6db7ba1..93f3d71eafa 100644
--- a/clang/CodeGen/CGExpr.cpp
+++ b/clang/CodeGen/CGExpr.cpp
@@ -82,8 +82,7 @@ RValue CodeGenFunction::EmitAnyExpr(const Expr *E, llvm::Value *AggLoc,
LValue CodeGenFunction::EmitLValue(const Expr *E) {
switch (E->getStmtClass()) {
default: {
- fprintf(stderr, "Unimplemented lvalue expr!\n");
- E->dump(getContext().SourceMgr);
+ WarnUnsupported(E, "l-value expression");
llvm::Type *Ty = llvm::PointerType::get(ConvertType(E->getType()));
return LValue::MakeAddr(llvm::UndefValue::get(Ty));
}
OpenPOWER on IntegriCloud