diff options
author | Anders Carlsson <andersca@mac.com> | 2011-03-25 11:22:47 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-03-25 11:22:47 +0000 |
commit | 6fc2204dde1bb643a07f6f2ac324c0a5a9036275 (patch) | |
tree | c7ecd2fa4c54db3452b78cc30ffdc2643052d11f /clang | |
parent | debd3ec14d6d65331bd8fd53294d67ddfddc7024 (diff) | |
download | bcm5719-llvm-6fc2204dde1bb643a07f6f2ac324c0a5a9036275.tar.gz bcm5719-llvm-6fc2204dde1bb643a07f6f2ac324c0a5a9036275.zip |
Fix some clang warnings.
llvm-svn: 128272
Diffstat (limited to 'clang')
-rw-r--r-- | clang/lib/AST/ExprConstant.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index 9ce98b7e574..2c0bcc2adb9 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp @@ -770,7 +770,7 @@ APValue VectorExprEvaluator::VisitCastExpr(const CastExpr* E) { return APValue(); Result = APValue(F); } else { - return false; + return APValue(); } // Splat and create vector APValue. @@ -782,7 +782,7 @@ APValue VectorExprEvaluator::VisitCastExpr(const CastExpr* E) { return Visit(const_cast<Expr*>(SE)); if (!SETy->isIntegerType()) - return false; + return APValue(); APSInt Init; if (!EvaluateInteger(SE, Init, Info)) @@ -808,7 +808,7 @@ APValue VectorExprEvaluator::VisitCastExpr(const CastExpr* E) { case CK_NoOp: return Visit(const_cast<Expr*>(SE)); default: - return false; + return APValue(); } } |