[cfe-commits] r65951 - /cfe/trunk/lib/CodeGen/CGExprConstant.cpp
Anders Carlsson
andersca at mac.com
Tue Mar 3 08:43:36 PST 2009
Author: andersca
Date: Tue Mar 3 10:43:34 2009
New Revision: 65951
URL: http://llvm.org/viewvc/llvm-project?rev=65951&view=rev
Log:
Return 0 if the ConstExprEmitter can't handle an expression.
Modified:
cfe/trunk/lib/CodeGen/CGExprConstant.cpp
Modified: cfe/trunk/lib/CodeGen/CGExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprConstant.cpp?rev=65951&r1=65950&r2=65951&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprConstant.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprConstant.cpp Tue Mar 3 10:43:34 2009
@@ -40,9 +40,7 @@
//===--------------------------------------------------------------------===//
llvm::Constant *VisitStmt(Stmt *S) {
- CGM.ErrorUnsupported(S, "constant expression");
- QualType T = cast<Expr>(S)->getType();
- return llvm::UndefValue::get(CGM.getTypes().ConvertType(T));
+ return 0;
}
llvm::Constant *VisitParenExpr(ParenExpr *PE) {
More information about the cfe-commits
mailing list