diff options
author | Anders Carlsson <andersca@mac.com> | 2009-03-03 16:43:34 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-03-03 16:43:34 +0000 |
commit | 069880ef6a2ecfdbc98a4980de53d3902499e83b (patch) | |
tree | 8a4fa8add4d1acc6e5b0caa2291c839443dae0e6 /lib/CodeGen/CGExprConstant.cpp | |
parent | 184671beebcbf89ebae95a3edf1e5e29ea72569c (diff) |
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
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
-rw-r--r-- | lib/CodeGen/CGExprConstant.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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<Expr>(S)->getType(); - return llvm::UndefValue::get(CGM.getTypes().ConvertType(T)); + return 0; } llvm::Constant *VisitParenExpr(ParenExpr *PE) { |