diff options
author | Vitaly Buka <vitalybuka@google.com> | 2022-06-17 17:36:51 -0700 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2022-06-17 17:40:06 -0700 |
commit | f0ca0a324fd5d32285ec081616b01f23c8fc635b (patch) | |
tree | 3207a4d8857b0ffcf1d7e8abb6c075ea3825fd2f /llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp | |
parent | 23d6f31a90a1631e7202a6ae6aac19c8245a8da1 (diff) | |
download | llvm-f0ca0a324fd5d32285ec081616b01f23c8fc635b.zip llvm-f0ca0a324fd5d32285ec081616b01f23c8fc635b.tar.gz llvm-f0ca0a324fd5d32285ec081616b01f23c8fc635b.tar.bz2 |
[CodeGen] Init EmptyExpr before the first use
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp index 6735837..30ca8bd 100644 --- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp +++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp @@ -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 |