summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-06-11 07:27:30 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-06-11 07:27:30 +0000
commitd85a9912531d96852ac530286c3eae844ca029a6 (patch)
treeac63f49e9c699b3e289d5089f569b930f2d1e708
parentc8df02487e6aac08204db5b85a2d8409bcd45bf3 (diff)
downloadbcm5719-llvm-d85a9912531d96852ac530286c3eae844ca029a6.tar.gz
bcm5719-llvm-d85a9912531d96852ac530286c3eae844ca029a6.zip
Use more robust getAsRecordType() method.
llvm-svn: 73186
-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 02d3d1f885f..528ee89a4ce 100644
--- a/clang/lib/Analysis/RegionStore.cpp
+++ b/clang/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());
OpenPOWER on IntegriCloud