diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-06-11 07:27:30 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-06-11 07:27:30 +0000 |
commit | b7507d18ec59a82fc902d807df86411d0c9da851 (patch) | |
tree | 95db5e804687aab4c3a9da4235c674eba80d2a24 /lib/Analysis/RegionStore.cpp | |
parent | c149412d3adfc28ce1f1c0cf6d3701f9491adaf0 (diff) |
Use more robust getAsRecordType() method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73186 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 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<RecordType>(T.getTypePtr()); + const RecordType* RT = T->getAsStructureType(); RecordDecl* RD = RT->getDecl(); assert(RD->isDefinition()); |