From: Ted Kremenek Date: Sat, 15 Nov 2008 00:40:08 +0000 (+0000) Subject: Use the correct QualType when creating the '0' constant. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d291c8cd1f6f2faea8c0fdb8954d37c72638376b;p=clang Use the correct QualType when creating the '0' constant. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59343 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp index 137a31ed9c..b1272c2496 100644 --- a/lib/Analysis/GRExprEngine.cpp +++ b/lib/Analysis/GRExprEngine.cpp @@ -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(V), X); St = SetSVal(St, U, Result);