[cfe-commits] r66768 - /cfe/trunk/lib/Analysis/RegionStore.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Wed Mar 11 20:45:35 PDT 2009
Author: zhongxingxu
Date: Wed Mar 11 22:45:35 2009
New Revision: 66768
URL: http://llvm.org/viewvc/llvm-project?rev=66768&view=rev
Log:
Use getAsRecordType() to get around sugar types.
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=66768&r1=66767&r2=66768&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/RegionStore.cpp (original)
+++ cfe/trunk/lib/Analysis/RegionStore.cpp Wed Mar 11 22:45:35 2009
@@ -1127,7 +1127,7 @@
QualType T = R->getRValueType(getContext());
assert(T->isStructureType());
- RecordType* RT = cast<RecordType>(T.getTypePtr());
+ const RecordType* RT = T->getAsRecordType();
RecordDecl* RD = RT->getDecl();
if (!RD->isDefinition())
More information about the cfe-commits
mailing list