forked from OSchip/llvm-project
Use more robust getAsRecordType() method.
llvm-svn: 73186
This commit is contained in:
parent
c8df02487e
commit
d85a991253
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue