remove the source location arguments to various target query methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47954 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Analysis/GRExprEngine.cpp b/Analysis/GRExprEngine.cpp
index 2481f56..4cd942b 100644
--- a/Analysis/GRExprEngine.cpp
+++ b/Analysis/GRExprEngine.cpp
@@ -277,8 +277,7 @@
// While most of this can be assumed (such as the signedness), having it
// just computed makes sure everything makes the same assumptions end-to-end.
- unsigned bits = getContext().getTypeSize(CondE->getType(),
- CondE->getExprLoc());
+ unsigned bits = getContext().getTypeSize(CondE->getType());
APSInt V1(bits, false);
APSInt V2 = V1;
@@ -716,10 +715,8 @@
uint64_t size = 1; // Handle sizeof(void)
- if (T != getContext().VoidTy) {
- SourceLocation Loc = Ex->getExprLoc();
- size = getContext().getTypeSize(T, Loc) / 8;
- }
+ if (T != getContext().VoidTy)
+ size = getContext().getTypeSize(T) / 8;
Nodify(Dst, Ex, Pred,
SetRVal(Pred->getState(), Ex,
@@ -949,10 +946,9 @@
if (!T.getTypePtr()->isConstantSizeType())
return;
- SourceLocation Loc = U->getExprLoc();
- uint64_t size = getContext().getTypeSize(T, Loc) / 8;
+ uint64_t size = getContext().getTypeSize(T) / 8;
ValueState* St = Pred->getState();
- St = SetRVal(St, U, NonLVal::MakeVal(ValMgr, size, U->getType(), Loc));
+ St = SetRVal(St, U, NonLVal::MakeVal(ValMgr, size, U->getType()));
Nodify(Dst, U, Pred, St);
}