[cfe-commits] r74047 - /cfe/trunk/lib/Analysis/RegionStore.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Tue Jun 23 18:12:41 PDT 2009
Author: zhongxingxu
Date: Tue Jun 23 20:12:41 2009
New Revision: 74047
URL: http://llvm.org/viewvc/llvm-project?rev=74047&view=rev
Log:
use a concrete type instead of a trait type to make code more readable.
Modified:
cfe/trunk/lib/Analysis/RegionStore.cpp
Modified: cfe/trunk/lib/Analysis/RegionStore.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/RegionStore.cpp?rev=74047&r1=74046&r2=74047&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/RegionStore.cpp (original)
+++ cfe/trunk/lib/Analysis/RegionStore.cpp Tue Jun 23 20:12:41 2009
@@ -892,8 +892,7 @@
// 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())
More information about the cfe-commits
mailing list