aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/MathExtrasTest.cpp
diff options
context:
space:
mode:
authorHsiangkai Wang <kai.wang@sifive.com>2021-05-13 10:45:00 +0800
committerHsiangkai Wang <kai.wang@sifive.com>2021-05-14 21:31:06 +0800
commitb41e1306b80f20a857f0e285e51ea453eb7888a1 (patch)
tree78e9ff4167f3ce326ef150eacd768f7295791702 /llvm/unittests/Support/MathExtrasTest.cpp
parent3d59f9d22440645ca0237dfc5d91ca09f749174b (diff)
downloadllvm-b41e1306b80f20a857f0e285e51ea453eb7888a1.zip
llvm-b41e1306b80f20a857f0e285e51ea453eb7888a1.tar.gz
llvm-b41e1306b80f20a857f0e285e51ea453eb7888a1.tar.bz2
[RISCV] Add the DebugLoc parameter to getVLENFactoredAmount().
The MachineBasicBlock::iterator is continuously changing during generating the frame handling instructions. We should use the DebugLoc from the caller, instead of getting it from the changing iterator. If the prologue instructions located in a basic block without any other instructions after these prologue instructions, the iterator will be updated to the boundary of the basic block and it is invalid to use the iterator to access DebugLoc. This patch also fixes the crash when accessing DebugLoc using the iterator. Differential Revision: https://reviews.llvm.org/D102386
Diffstat (limited to 'llvm/unittests/Support/MathExtrasTest.cpp')
0 files changed, 0 insertions, 0 deletions