[cfe-commits] r73186 - /cfe/trunk/lib/Analysis/RegionStore.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Thu Jun 11 00:27:30 PDT 2009
Author: zhongxingxu
Date: Thu Jun 11 02:27:30 2009
New Revision: 73186
URL: http://llvm.org/viewvc/llvm-project?rev=73186&view=rev
Log:
Use more robust getAsRecordType() 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=73186&r1=73185&r2=73186&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/RegionStore.cpp (original)
+++ cfe/trunk/lib/Analysis/RegionStore.cpp Thu Jun 11 02:27:30 2009
@@ -840,7 +840,7 @@
QualType T = R->getValueType(getContext());
assert(T->isStructureType());
- const RecordType* RT = cast<RecordType>(T.getTypePtr());
+ const RecordType* RT = T->getAsStructureType();
RecordDecl* RD = RT->getDecl();
assert(RD->isDefinition());
More information about the cfe-commits
mailing list