diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-08-11 06:10:55 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-08-11 06:10:55 +0000 |
commit | 018220c343c103b7dfaa117a7a474c7a7fd6d068 (patch) | |
tree | 40dc57713cecb35317bb9b28a17941d07803c716 /lib/Checker/GRState.cpp | |
parent | 18451ea83a4ec5a61816c20dc03f2ed8648600d1 (diff) |
MemRegion can refer to ASTContext without external help.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110784 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/GRState.cpp')
-rw-r--r-- | lib/Checker/GRState.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Checker/GRState.cpp b/lib/Checker/GRState.cpp index 82563eddca..bb76328c22 100644 --- a/lib/Checker/GRState.cpp +++ b/lib/Checker/GRState.cpp @@ -88,7 +88,7 @@ SVal GRState::getSValAsScalarOrLoc(const MemRegion *R) const { return UnknownVal(); if (const TypedRegion *TR = dyn_cast<TypedRegion>(R)) { - QualType T = TR->getValueType(getStateManager().getContext()); + QualType T = TR->getValueType(); if (Loc::IsLocType(T) || T->isIntegerType()) return getSVal(R); } |