summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/Store.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/Store.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/Store.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/Store.cpp b/clang/lib/StaticAnalyzer/Core/Store.cpp
index d5c88e8ad81..916db13aacf 100644
--- a/clang/lib/StaticAnalyzer/Core/Store.cpp
+++ b/clang/lib/StaticAnalyzer/Core/Store.cpp
@@ -47,7 +47,7 @@ StoreRef StoreManager::enterStackFrame(Store OldStore,
// FIXME: We will eventually want to generalize this to handle other non-
// parameter arguments besides 'this' (such as 'self' for ObjC methods).
SVal ThisVal = Call.getCXXThisVal();
- if (!ThisVal.isUndef()) {
+ if (isa<DefinedSVal>(ThisVal)) {
const CXXMethodDecl *MD = cast<CXXMethodDecl>(Call.getDecl());
loc::MemRegionVal ThisRegion = svalBuilder.getCXXThis(MD, LCtx);
Store = Bind(Store.getStore(), ThisRegion, ThisVal);
OpenPOWER on IntegriCloud