[analyzer][NFC] Be more descriptive when we replay without inlining
authorisuckatcs <65320245+isuckatcs@users.noreply.github.com>
Fri, 19 Aug 2022 15:50:49 +0000 (17:50 +0200)
committerisuckatcs <65320245+isuckatcs@users.noreply.github.com>
Fri, 19 Aug 2022 16:05:52 +0000 (18:05 +0200)
This patch adds a ProgramPointTag to the EpsilonPoint created
before we replay a call without inlining.

Differential Revision: https://reviews.llvm.org/D132246

clang/lib/StaticAnalyzer/Core/ExprEngine.cpp

index 09ccb30..20b1397 100644 (file)
@@ -2117,8 +2117,9 @@ bool ExprEngine::replayWithoutInlining(ExplodedNode *N,
 
   // Build an Epsilon node from which we will restart the analyzes.
   // Note that CE is permitted to be NULL!
-  ProgramPoint NewNodeLoc =
-               EpsilonPoint(BeforeProcessingCall->getLocationContext(), CE);
+  static SimpleProgramPointTag PT("ExprEngine", "Replay without inlining");
+  ProgramPoint NewNodeLoc = EpsilonPoint(
+      BeforeProcessingCall->getLocationContext(), CE, nullptr, &PT);
   // Add the special flag to GDM to signal retrying with no inlining.
   // Note, changing the state ensures that we are not going to cache out.
   ProgramStateRef NewNodeState = BeforeProcessingCall->getState();