diff options
author | Anna Zaks <ganna@apple.com> | 2012-08-09 21:02:45 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-08-09 21:02:45 +0000 |
commit | d4fe57f7f7a8793227effc1274d70ec44cee9a4f (patch) | |
tree | 0b59c4e2bc75cb2635c3338a63778cdd58dd7ca8 /lib/StaticAnalyzer/Core/ProgramState.cpp | |
parent | 6960f6e53b0d9a69a460c99ec199470271ff9603 (diff) |
[analyzer] Rename the function to better reflect what it actually does.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161617 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/ProgramState.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/ProgramState.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/StaticAnalyzer/Core/ProgramState.cpp b/lib/StaticAnalyzer/Core/ProgramState.cpp index c20979bddb..0e5ff785bf 100644 --- a/lib/StaticAnalyzer/Core/ProgramState.cpp +++ b/lib/StaticAnalyzer/Core/ProgramState.cpp @@ -762,12 +762,10 @@ DynamicTypeInfo ProgramState::getDynamicTypeInfo(const MemRegion *Reg) const { return DynamicTypeInfo(); } -ProgramStateRef ProgramState::addDynamicTypeInfo(const MemRegion *Reg, +ProgramStateRef ProgramState::setDynamicTypeInfo(const MemRegion *Reg, DynamicTypeInfo NewTy) const { if (const SymbolicRegion *SR = dyn_cast<SymbolicRegion>(Reg)) { SymbolRef Sym = SR->getSymbol(); - // TODO: Instead of resetting the type info, check the old type info and - // merge and pick the most precise type. ProgramStateRef NewState = set<DynamicTypeMap>(Sym, NewTy); assert(NewState); return NewState; |