diff options
| author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-06-24 01:12:41 +0000 |
|---|---|---|
| committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-06-24 01:12:41 +0000 |
| commit | 33420090ae83aca1155917d6834f5e1ec53407c2 (patch) | |
| tree | 46bea7c99c66150b928b3c0a4ecafcc304e0f15c /clang/lib/Analysis/RegionStore.cpp | |
| parent | 443af01b1a9123ecfdadbb93e30ef621088e2a47 (diff) | |
| download | bcm5719-llvm-33420090ae83aca1155917d6834f5e1ec53407c2.tar.gz bcm5719-llvm-33420090ae83aca1155917d6834f5e1ec53407c2.zip | |
use a concrete type instead of a trait type to make code more readable.
llvm-svn: 74047
Diffstat (limited to 'clang/lib/Analysis/RegionStore.cpp')
| -rw-r--r-- | clang/lib/Analysis/RegionStore.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp index ab60ff32ada..c9c923a5e33 100644 --- a/clang/lib/Analysis/RegionStore.cpp +++ b/clang/lib/Analysis/RegionStore.cpp @@ -892,8 +892,7 @@ SVal RegionStoreManager::Retrieve(const GRState *state, Loc L, QualType T) { // If the region is an element or field, it may have a default value. if (isa<ElementRegion>(R) || isa<FieldRegion>(R)) { const MemRegion* SuperR = cast<SubRegion>(R)->getSuperRegion(); - GRStateTrait<RegionDefaultValue>::lookup_type D = - state->get<RegionDefaultValue>(SuperR); + const SVal* D = state->get<RegionDefaultValue>(SuperR); if (D) { // If the default value is symbolic, we need to create a new symbol. if (D->hasConjuredSymbol()) |

