summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/RegionStore.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-03-12 03:45:35 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-03-12 03:45:35 +0000
commit5a6fee9fb8ec4c79725019dde5b9a448e3b96e0e (patch)
tree6b5e25f6f278f7d05baf709891346f46a9ab88e7 /clang/lib/Analysis/RegionStore.cpp
parentc727e9310df06714a6b5ff0c592c171a68360cad (diff)
downloadbcm5719-llvm-5a6fee9fb8ec4c79725019dde5b9a448e3b96e0e.tar.gz
bcm5719-llvm-5a6fee9fb8ec4c79725019dde5b9a448e3b96e0e.zip
Use getAsRecordType() to get around sugar types.
llvm-svn: 66768
Diffstat (limited to 'clang/lib/Analysis/RegionStore.cpp')
-rw-r--r--clang/lib/Analysis/RegionStore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp
index 84523dc5cf0..fbaa302d31f 100644
--- a/clang/lib/Analysis/RegionStore.cpp
+++ b/clang/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())
OpenPOWER on IntegriCloud