diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-03-12 03:45:35 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-03-12 03:45:35 +0000 |
commit | b13ecdbedfaefb93ec1c9e0fca14e2fe6b0491a6 (patch) | |
tree | 015e1554418eee56a93225dcff63d1736c2fbd34 /lib/Analysis/RegionStore.cpp | |
parent | b349fccc4a6e416483b0b36b4f74e39787c62344 (diff) |
Use getAsRecordType() to get around sugar types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66768 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/RegionStore.cpp')
-rw-r--r-- | lib/Analysis/RegionStore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<RecordType>(T.getTypePtr()); + const RecordType* RT = T->getAsRecordType(); RecordDecl* RD = RT->getDecl(); if (!RD->isDefinition()) |