From: Anders Carlsson Date: Tue, 3 Mar 2009 16:43:34 +0000 (+0000) Subject: Return 0 if the ConstExprEmitter can't handle an expression. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=069880ef6a2ecfdbc98a4980de53d3902499e83b;p=clang Return 0 if the ConstExprEmitter can't handle an expression. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65951 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp index 565549c91f..3f52175745 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/lib/CodeGen/CGExprConstant.cpp @@ -40,9 +40,7 @@ public: //===--------------------------------------------------------------------===// llvm::Constant *VisitStmt(Stmt *S) { - CGM.ErrorUnsupported(S, "constant expression"); - QualType T = cast(S)->getType(); - return llvm::UndefValue::get(CGM.getTypes().ConvertType(T)); + return 0; } llvm::Constant *VisitParenExpr(ParenExpr *PE) {