From f0780fae4318c38f3204d30bddf6032c5dcc8493 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 2 Dec 2007 01:49:16 +0000 Subject: convert the rest of the stderr users in codegen to use diagnostics. llvm-svn: 44503 --- clang/CodeGen/CGExpr.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'clang/CodeGen/CGExpr.cpp') 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)); } -- cgit v1.2.3