[PATCH] D12818: [Static Analyzer] Relaxing a caching out related assert.
Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 14 12:01:37 PDT 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL247598: [Static Analyzer] Relaxing a caching out related assert. (authored by xazax).
Changed prior to commit:
http://reviews.llvm.org/D12818?vs=34579&id=34719#toc
Repository:
rL LLVM
http://reviews.llvm.org/D12818
Files:
cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineObjC.cpp
Index: cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineObjC.cpp
===================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineObjC.cpp
+++ cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineObjC.cpp
@@ -186,8 +186,11 @@
// Generate a transition to non-Nil state.
if (notNilState != State) {
+ bool HasTag = Pred->getLocation().getTag();
Pred = Bldr.generateNode(ME, Pred, notNilState);
- assert(Pred && "Should have cached out already!");
+ assert((Pred || HasTag) && "Should have cached out already!");
+ if (!Pred)
+ continue;
}
}
} else {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12818.34719.patch
Type: text/x-patch
Size: 684 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150914/f5282018/attachment.bin>
More information about the cfe-commits
mailing list