From: Zhongxing Xu Date: Thu, 12 Mar 2009 03:45:35 +0000 (+0000) Subject: Use getAsRecordType() to get around sugar types. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b13ecdbedfaefb93ec1c9e0fca14e2fe6b0491a6;p=clang Use getAsRecordType() to get around sugar types. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66768 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/RegionStore.cpp b/lib/Analysis/RegionStore.cpp index 84523dc5cf..fbaa302d31 100644 --- a/lib/Analysis/RegionStore.cpp +++ b/lib/Analysis/RegionStore.cpp @@ -1127,7 +1127,7 @@ RegionStoreManager::BindStruct(const GRState* St, const TypedRegion* R, SVal V){ QualType T = R->getRValueType(getContext()); assert(T->isStructureType()); - RecordType* RT = cast(T.getTypePtr()); + const RecordType* RT = T->getAsRecordType(); RecordDecl* RD = RT->getDecl(); if (!RD->isDefinition())