diff options
Diffstat (limited to 'lib/StaticAnalyzer/Core/Store.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/Store.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/Core/Store.cpp b/lib/StaticAnalyzer/Core/Store.cpp index d5c88e8ad8..916db13aac 100644 --- a/lib/StaticAnalyzer/Core/Store.cpp +++ b/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); |