]> granicus.if.org Git - clang/commitdiff
silence a warning.
authorChris Lattner <sabre@nondot.org>
Tue, 3 Nov 2009 19:48:51 +0000 (19:48 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 3 Nov 2009 19:48:51 +0000 (19:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85931 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ExprConstant.cpp

index 804684cc2bf6ce9fb0068d40ccca4b77a41974de..c70d05e55b8782076e3e64700dda19b597d5a8c6 100644 (file)
@@ -966,7 +966,7 @@ bool IntExprEvaluator::VisitCallExpr(const CallExpr *E) {
 
     if (HasSideEffects(E->getArg(0), Info.Ctx)) {
       if (E->getArg(1)->EvaluateAsInt(Info.Ctx).getZExtValue() < 2)
-        return Success(-1, E);
+        return Success(-1ULL, E);
       return Success(0, E);
     }