summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/BasicStore.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-03-30 19:53:37 +0000
committerTed Kremenek <kremenek@apple.com>2009-03-30 19:53:37 +0000
commitac508988a5c9735f7a87aa6b871a2a03e250a6b6 (patch)
treec18623c8afab8a624a61c1a088a6468436927cc8 /clang/lib/Analysis/BasicStore.cpp
parent169927e7ef2330d025bf754beef93aa6a27cfbda (diff)
downloadbcm5719-llvm-ac508988a5c9735f7a87aa6b871a2a03e250a6b6.tar.gz
bcm5719-llvm-ac508988a5c9735f7a87aa6b871a2a03e250a6b6.zip
Simplify more code by using SVal::getAsSymbol().
llvm-svn: 68052
Diffstat (limited to 'clang/lib/Analysis/BasicStore.cpp')
-rw-r--r--clang/lib/Analysis/BasicStore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/BasicStore.cpp b/clang/lib/Analysis/BasicStore.cpp
index cb6fcab3805..28a5b98fc4e 100644
--- a/clang/lib/Analysis/BasicStore.cpp
+++ b/clang/lib/Analysis/BasicStore.cpp
@@ -239,7 +239,7 @@ SVal BasicStoreManager::getLValueElement(const GRState* St, SVal Base,
// FIXME: Should we have symbolic regions be typed or typeless?
// Here we assume that these regions are typeless, even though the
// symbol is typed.
- SymbolRef Sym = cast<loc::SymbolVal>(&BaseL)->getSymbol();
+ SymbolRef Sym = BaseL.getAsSymbol();
// Create a region to represent this symbol.
// FIXME: In the future we may just use symbolic regions instead of
// SymbolVals to reason about symbolic memory chunks.
OpenPOWER on IntegriCloud