]> granicus.if.org Git - clang/commitdiff
Use getAsRecordType() to get around sugar types.
authorZhongxing Xu <xuzhongxing@gmail.com>
Thu, 12 Mar 2009 03:45:35 +0000 (03:45 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Thu, 12 Mar 2009 03:45:35 +0000 (03:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66768 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/RegionStore.cpp

index 84523dc5cf04d65fb1a28b09985ac9c5bd47f324..fbaa302d31f92387f3bc0565e4302312ee369883 100644 (file)
@@ -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<RecordType>(T.getTypePtr());
+  const RecordType* RT = T->getAsRecordType();
   RecordDecl* RD = RT->getDecl();
 
   if (!RD->isDefinition())