Skip to content

Commit a47ec1b

Browse files
committed
[analyzer][NFC] Be more descriptive when we replay without inlining
This patch adds a ProgramPointTag to the EpsilonPoint created before we replay a call without inlining. Differential Revision: https://reviews.llvm.org/D132246
1 parent ee648c0 commit a47ec1b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/lib/StaticAnalyzer/Core/ExprEngine.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2117,8 +2117,9 @@ bool ExprEngine::replayWithoutInlining(ExplodedNode *N,
21172117

21182118
// Build an Epsilon node from which we will restart the analyzes.
21192119
// Note that CE is permitted to be NULL!
2120-
ProgramPoint NewNodeLoc =
2121-
EpsilonPoint(BeforeProcessingCall->getLocationContext(), CE);
2120+
static SimpleProgramPointTag PT("ExprEngine", "Replay without inlining");
2121+
ProgramPoint NewNodeLoc = EpsilonPoint(
2122+
BeforeProcessingCall->getLocationContext(), CE, nullptr, &PT);
21222123
// Add the special flag to GDM to signal retrying with no inlining.
21232124
// Note, changing the state ensures that we are not going to cache out.
21242125
ProgramStateRef NewNodeState = BeforeProcessingCall->getState();

0 commit comments

Comments
 (0)