[cfe-commits] r73218 - /cfe/trunk/lib/Analysis/RegionStore.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Thu Jun 11 20:59:13 PDT 2009
Author: zhongxingxu
Date: Thu Jun 11 22:59:12 2009
New Revision: 73218
URL: http://llvm.org/viewvc/llvm-project?rev=73218&view=rev
Log:
use getAsPointerType() method.
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=73218&r1=73217&r2=73218&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/RegionStore.cpp (original)
+++ cfe/trunk/lib/Analysis/RegionStore.cpp Thu Jun 11 22:59:12 2009
@@ -651,7 +651,7 @@
// Get symbol's type. It should be a pointer type.
SymbolRef Sym = SR->getSymbol();
QualType T = Sym->getType(getContext());
- QualType EleTy = cast<PointerType>(T.getTypePtr())->getPointeeType();
+ QualType EleTy = T->getAsPointerType()->getPointeeType();
SVal ZeroIdx = ValMgr.makeZeroArrayIndex();
ER = MRMgr.getElementRegion(EleTy, ZeroIdx, SR);
More information about the cfe-commits
mailing list