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 | 0254e70b189a2400648d1cc53e279cc3786186e8 (patch) | |
tree | e7f61a87927ea234a13fa18b02fcb3d56ff85805 | |
parent | b1f39680a2e3bce508dba0600665860e5ba5fb70 (diff) |
Fix some clang warnings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128272 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/AST/ExprConstant.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index 9ce98b7e57..2c0bcc2adb 100644 --- a/lib/AST/ExprConstant.cpp +++ b/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(); } } |