[llvm] f0ca0a3 - [CodeGen] Init EmptyExpr before the first use
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 17 17:40:23 PDT 2022
Author: Vitaly Buka
Date: 2022-06-17T17:40:06-07:00
New Revision: f0ca0a324fd5d32285ec081616b01f23c8fc635b
URL: https://github.com/llvm/llvm-project/commit/f0ca0a324fd5d32285ec081616b01f23c8fc635b
DIFF: https://github.com/llvm/llvm-project/commit/f0ca0a324fd5d32285ec081616b01f23c8fc635b.diff
LOG: [CodeGen] Init EmptyExpr before the first use
Added:
Modified:
llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
index 6735837ec98c..30ca8bd871e8 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
More information about the llvm-commits
mailing list