Skip to content

Commit

Permalink
[CodeGen] Init EmptyExpr before the first use
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka committed Jun 18, 2022
1 parent 23d6f31 commit f0ca0a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3175,12 +3175,12 @@ bool InstrRefBasedLDV::ExtendRanges(MachineFunction &MF,
assert(MaxNumBlocks >= 0);
++MaxNumBlocks;

initialSetup(MF);

MLocTransfer.resize(MaxNumBlocks);
vlocs.resize(MaxNumBlocks, VLocTracker(OverlapFragments, EmptyExpr));
SavedLiveIns.resize(MaxNumBlocks);

initialSetup(MF);

produceMLocTransferFunction(MF, MLocTransfer, MaxNumBlocks);

// Allocate and initialize two array-of-arrays for the live-in and live-out
Expand Down

0 comments on commit f0ca0a3

Please sign in to comment.