[analyzer] Account for the "interesting values" hash table resizing.
authorJordan Rose <jordan_rose@apple.com>
Wed, 20 Feb 2013 00:27:26 +0000 (00:27 +0000)
committerJordan Rose <jordan_rose@apple.com>
Wed, 20 Feb 2013 00:27:26 +0000 (00:27 +0000)
commit7bfb41538747644d302344963d9247d96814dbb7
tree803fb0f22b762004e6c2eb454147e8f74a69a43b
parent8bc7af1a93813a742b5ecea29bef0dc441fa7494
[analyzer] Account for the "interesting values" hash table resizing.

RegionStoreManager::getInterestingValues() returns a pointer to a
std::vector that lives inside a DenseMap, which is constructed on demand.
However, constructing one such value can lead to constructing another
value, which will invalidate the reference created earlier.

Fixed by delaying the new entry creation until the function returns.

llvm-svn: 175582
clang/lib/StaticAnalyzer/Core/RegionStore.cpp