]> granicus.if.org Git - clang/commitdiff
Return 0 if the ConstExprEmitter can't handle an expression.
authorAnders Carlsson <andersca@mac.com>
Tue, 3 Mar 2009 16:43:34 +0000 (16:43 +0000)
committerAnders Carlsson <andersca@mac.com>
Tue, 3 Mar 2009 16:43:34 +0000 (16:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65951 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExprConstant.cpp

index 565549c91fad47a6c6d2d1ab041d0791ddf1cbc0..3f52175745f25579639d63865ef39a6fed47a5e7 100644 (file)
@@ -40,9 +40,7 @@ public:
   //===--------------------------------------------------------------------===//
     
   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) {