Skip to content

Commit

Permalink
[Static Analyzer] Relaxing a caching out related assert.
Browse files Browse the repository at this point in the history
Differential Revision: http://reviews.llvm.org/D12818

llvm-svn: 247598
  • Loading branch information
Xazax-hun committed Sep 14, 2015
1 parent f0f0b7a commit dc6be24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion clang/lib/StaticAnalyzer/Core/ExprEngineObjC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,11 @@ void ExprEngine::VisitObjCMessage(const ObjCMessageExpr *ME,

// 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 {
Expand Down

0 comments on commit dc6be24

Please sign in to comment.