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 137a31e..b1272c2 100644
--- a/lib/Analysis/GRExprEngine.cpp
+++ b/lib/Analysis/GRExprEngine.cpp
@@ -2088,7 +2088,7 @@
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);