[cfe-commits] r128272 - /cfe/trunk/lib/AST/ExprConstant.cpp
Anders Carlsson
andersca at mac.com
Fri Mar 25 04:22:47 PDT 2011
Author: andersca
Date: Fri Mar 25 06:22:47 2011
New Revision: 128272
URL: http://llvm.org/viewvc/llvm-project?rev=128272&view=rev
Log:
Fix some clang warnings.
Modified:
cfe/trunk/lib/AST/ExprConstant.cpp
Modified: cfe/trunk/lib/AST/ExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=128272&r1=128271&r2=128272&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprConstant.cpp (original)
+++ cfe/trunk/lib/AST/ExprConstant.cpp Fri Mar 25 06:22:47 2011
@@ -770,7 +770,7 @@
return APValue();
Result = APValue(F);
} else {
- return false;
+ return APValue();
}
// Splat and create vector APValue.
@@ -782,7 +782,7 @@
return Visit(const_cast<Expr*>(SE));
if (!SETy->isIntegerType())
- return false;
+ return APValue();
APSInt Init;
if (!EvaluateInteger(SE, Init, Info))
@@ -808,7 +808,7 @@
case CK_NoOp:
return Visit(const_cast<Expr*>(SE));
default:
- return false;
+ return APValue();
}
}
More information about the cfe-commits
mailing list