]> granicus.if.org Git - clang/commitdiff
Use the correct QualType when creating the '0' constant.
authorTed Kremenek <kremenek@apple.com>
Sat, 15 Nov 2008 00:40:08 +0000 (00:40 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 15 Nov 2008 00:40:08 +0000 (00:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59343 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/GRExprEngine.cpp

index 137a31ed9c4c852640cf321e474ddd7d9a1a9ab6..b1272c2496bb020cb422361b473f4cbac6a4580d 100644 (file)
@@ -2088,7 +2088,7 @@ void GRExprEngine::VisitUnaryOperator(UnaryOperator* U, NodeTy* Pred,
               St = BindExpr(St, U, Result);
             }
             else {
-              nonloc::ConcreteInt X(getBasicVals().getValue(0, Ex->getType()));
+              nonloc::ConcreteInt X(getBasicVals().getValue(0, U->getType()));
 #if 0            
               SVal Result = EvalBinOp(BinaryOperator::EQ, cast<NonLoc>(V), X);
               St = SetSVal(St, U, Result);