Use more robust getAsRecordType() method.

llvm-svn: 73186
This commit is contained in:
Zhongxing Xu 2009-06-11 07:27:30 +00:00
parent c8df02487e
commit d85a991253
1 changed files with 1 additions and 1 deletions

View File

@ -840,7 +840,7 @@ SVal RegionStoreManager::RetrieveStruct(const GRState* St,const TypedRegion* R){
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());