commit | 7c282e4f3fe21f9412b7330435bf04502123bae3 | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Sat Nov 22 22:56:32 2008 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Sat Nov 22 22:56:32 2008 +0000 |
tree | e7430f20a1bf5e23aef7701d68e8a9021281f605 | |
parent | 632ab20e1e4879b09387b73d6b1cec70254d6b9d [diff] [blame] |
Return false if we encounter a type we can't handle. llvm-svn: 59889
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index 5c5adb6..6fba884 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp
@@ -1176,7 +1176,8 @@ } else if (getType()->isComplexType()) { if (!EvaluateComplexFloat(this, Result, Info)) return false; - } + } else + return false; if (isEvaluated) *isEvaluated = Info.isEvaluated;