From: Zhongxing Xu Date: Thu, 11 Jun 2009 07:27:30 +0000 (+0000) Subject: Use more robust getAsRecordType() method. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7507d18ec59a82fc902d807df86411d0c9da851;p=clang Use more robust getAsRecordType() method. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73186 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/RegionStore.cpp b/lib/Analysis/RegionStore.cpp index 02d3d1f885..528ee89a4c 100644 --- a/lib/Analysis/RegionStore.cpp +++ b/lib/Analysis/RegionStore.cpp @@ -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(T.getTypePtr()); + const RecordType* RT = T->getAsStructureType(); RecordDecl* RD = RT->getDecl(); assert(RD->isDefinition());