diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-11-09 22:08:55 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-11-09 22:08:55 +0000 |
commit | 4ef1d400d9228e9c679273a8b46363d298dbeb27 (patch) | |
tree | 74a034aa3c6906b8afa9b8a9c6ddf0d512ac17c1 /clang/lib/Analysis/RegionStore.cpp | |
parent | dd51f7cca2990e66f819fadef8e887ede0e898e0 (diff) | |
download | bcm5719-llvm-4ef1d400d9228e9c679273a8b46363d298dbeb27.tar.gz bcm5719-llvm-4ef1d400d9228e9c679273a8b46363d298dbeb27.zip |
Make sure that Type::getAs<ArrayType>() (or Type::getAs<subclass of
ArrayType>()) does not instantiate. Update all callers that used this
unsafe feature to use the appropriate ASTContext::getAs*ArrayType method.
llvm-svn: 86596
Diffstat (limited to 'clang/lib/Analysis/RegionStore.cpp')
-rw-r--r-- | clang/lib/Analysis/RegionStore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp index dbf8c42d273..45c42281ab2 100644 --- a/clang/lib/Analysis/RegionStore.cpp +++ b/clang/lib/Analysis/RegionStore.cpp @@ -1109,7 +1109,7 @@ SVal RegionStoreManager::RetrieveElement(const GRState* state, // FIXME: Handle loads from strings where the literal is treated as // an integer, e.g., *((unsigned int*)"hello") ASTContext &Ctx = getContext(); - QualType T = StrR->getValueType(Ctx)->getAs<ArrayType>()->getElementType(); + QualType T = Ctx.getAsArrayType(StrR->getValueType(Ctx))->getElementType(); if (T != Ctx.getCanonicalType(R->getElementType())) return UnknownVal(); |