diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-09-26 06:00:14 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-09-26 06:00:14 +0000 |
commit | 732cdf383f9030ff2b9fb28dfbdae2285ded80c6 (patch) | |
tree | 269e7563570a5b2194168482e9e4940237c327f3 /lib/StaticAnalyzer/Core/ConstraintManager.cpp | |
parent | 385cc5f01b59af0183a825351d93695ca7185091 (diff) |
Remove unnecessary ASTContext& parameter from SymExpr::getType().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/ConstraintManager.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/ConstraintManager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/StaticAnalyzer/Core/ConstraintManager.cpp b/lib/StaticAnalyzer/Core/ConstraintManager.cpp index 075c771f0d..5dd1392bde 100644 --- a/lib/StaticAnalyzer/Core/ConstraintManager.cpp +++ b/lib/StaticAnalyzer/Core/ConstraintManager.cpp @@ -33,8 +33,7 @@ ConditionTruthVal ConstraintManager::isNull(ProgramStateRef State, // Disable recursive notification of clients. llvm::SaveAndRestore<bool> DisableNotify(NotifyAssumeClients, false); - ProgramStateManager &Mgr = State->getStateManager(); - QualType Ty = Sym->getType(Mgr.getContext()); + QualType Ty = Sym->getType(); DefinedSVal V = Loc::isLocType(Ty) ? getLocFromSymbol(State, Sym) : nonloc::SymbolVal(Sym); const ProgramStatePair &P = assumeDual(State, V); |