[cfe-commits] r61993 - /cfe/trunk/lib/CodeGen/CGExprScalar.cpp
Daniel Dunbar
daniel at zuster.org
Fri Jan 9 09:04:29 PST 2009
Author: ddunbar
Date: Fri Jan 9 11:04:29 2009
New Revision: 61993
URL: http://llvm.org/viewvc/llvm-project?rev=61993&view=rev
Log:
Emit more refined "unsupported" error for block expressions.
Modified:
cfe/trunk/lib/CodeGen/CGExprScalar.cpp
Modified: cfe/trunk/lib/CodeGen/CGExprScalar.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprScalar.cpp?rev=61993&r1=61992&r2=61993&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprScalar.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprScalar.cpp Fri Jan 9 11:04:29 2009
@@ -316,6 +316,11 @@
Value *VisitBinComma (const BinaryOperator *E);
// Other Operators.
+ Value *VisitBlockExpr(const BlockExpr *BE) {
+ CGF.ErrorUnsupported(BE, "block expression");
+ return llvm::UndefValue::get(CGF.ConvertType(BE->getType()));
+ }
+
Value *VisitConditionalOperator(const ConditionalOperator *CO);
Value *VisitChooseExpr(ChooseExpr *CE);
Value *VisitOverloadExpr(OverloadExpr *OE);
More information about the cfe-commits
mailing list