From d85a9912531d96852ac530286c3eae844ca029a6 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Thu, 11 Jun 2009 07:27:30 +0000 Subject: [PATCH] Use more robust getAsRecordType() method. llvm-svn: 73186 --- clang/lib/Analysis/RegionStore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp index 02d3d1f885f9..528ee89a4ce0 100644 --- a/clang/lib/Analysis/RegionStore.cpp +++ b/clang/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());