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 | 24b1447b193f57462014d736a68307f029786c4e (patch) | |
tree | 2d6b0bafeddfb51ed137f9e400cf21f9aefc211c /clang/lib/CodeGen/CGExprConstant.cpp | |
parent | b0e25c1cebfa4473f28c11d63f02846105c5e597 (diff) | |
download | bcm5719-llvm-24b1447b193f57462014d736a68307f029786c4e.tar.gz bcm5719-llvm-24b1447b193f57462014d736a68307f029786c4e.zip |
Return 0 if the ConstExprEmitter can't handle an expression.
llvm-svn: 65951
Diffstat (limited to 'clang/lib/CodeGen/CGExprConstant.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExprConstant.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGExprConstant.cpp b/clang/lib/CodeGen/CGExprConstant.cpp index 565549c91fa..3f52175745f 100644 --- a/clang/lib/CodeGen/CGExprConstant.cpp +++ b/clang/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) { |