@@ -968,7 +968,6 @@ void ExprEngine::processEndWorklist() {
968
968
969
969
void ExprEngine::processCFGElement (const CFGElement E, ExplodedNode *Pred,
970
970
unsigned StmtIdx, NodeBuilderContext *Ctx) {
971
- PrettyStackTraceLocationContext CrashInfo (Pred->getLocationContext ());
972
971
currStmtIdx = StmtIdx;
973
972
currBldrCtx = Ctx;
974
973
@@ -2541,7 +2540,6 @@ static const LocationContext *getInlinedLocationContext(ExplodedNode *Node,
2541
2540
void ExprEngine::processCFGBlockEntrance (const BlockEdge &L,
2542
2541
NodeBuilderWithSinks &nodeBuilder,
2543
2542
ExplodedNode *Pred) {
2544
- PrettyStackTraceLocationContext CrashInfo (Pred->getLocationContext ());
2545
2543
// If we reach a loop which has a known bound (and meets
2546
2544
// other constraints) then consider completely unrolling it.
2547
2545
if (AMgr.options .ShouldUnrollLoops ) {
@@ -2808,8 +2806,6 @@ void ExprEngine::processBranch(
2808
2806
std::optional<unsigned > IterationsCompletedInLoop) {
2809
2807
assert ((!Condition || !isa<CXXBindTemporaryExpr>(Condition)) &&
2810
2808
" CXXBindTemporaryExprs are handled by processBindTemporary." );
2811
- const LocationContext *LCtx = Pred->getLocationContext ();
2812
- PrettyStackTraceLocationContext StackCrashInfo (LCtx);
2813
2809
currBldrCtx = &BldCtx;
2814
2810
2815
2811
// Check for NULL conditions; e.g. "for(;;)"
@@ -2935,13 +2931,9 @@ void ExprEngine::processBranch(
2935
2931
REGISTER_TRAIT_WITH_PROGRAMSTATE (InitializedGlobalsSet,
2936
2932
llvm::ImmutableSet<const VarDecl *>)
2937
2933
2938
- void ExprEngine::processStaticInitializer(const DeclStmt *DS,
2939
- NodeBuilderContext &BuilderCtx,
2940
- ExplodedNode *Pred,
2941
- ExplodedNodeSet &Dst,
2942
- const CFGBlock *DstT,
2943
- const CFGBlock *DstF) {
2944
- PrettyStackTraceLocationContext CrashInfo (Pred->getLocationContext ());
2934
+ void ExprEngine::processStaticInitializer(
2935
+ const DeclStmt *DS, NodeBuilderContext &BuilderCtx, ExplodedNode *Pred,
2936
+ ExplodedNodeSet &Dst, const CFGBlock *DstT, const CFGBlock *DstF) {
2945
2937
currBldrCtx = &BuilderCtx;
2946
2938
2947
2939
const auto *VD = cast<VarDecl>(DS->getSingleDecl ());
@@ -3064,9 +3056,6 @@ void ExprEngine::processEndOfFunction(NodeBuilderContext& BC,
3064
3056
assert (areAllObjectsFullyConstructed (Pred->getState (),
3065
3057
Pred->getLocationContext (),
3066
3058
Pred->getStackFrame ()->getParent ()));
3067
-
3068
- PrettyStackTraceLocationContext CrashInfo (Pred->getLocationContext ());
3069
-
3070
3059
ExplodedNodeSet Dst;
3071
3060
if (Pred->getLocationContext ()->inTopFrame ()) {
3072
3061
// Remove dead symbols.
0 commit comments