[llvm] 017c982 - [NFC][M68k] Replace `APInt::zextOrSelf` with `APInt::zext`
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 19 05:46:59 PDT 2022
Author: Sheng
Date: 2022-05-19T20:43:56+08:00
New Revision: 017c98276b07a0abd1204ff34ee2b8f761099fac
URL: https://github.com/llvm/llvm-project/commit/017c98276b07a0abd1204ff34ee2b8f761099fac
DIFF: https://github.com/llvm/llvm-project/commit/017c98276b07a0abd1204ff34ee2b8f761099fac.diff
LOG: [NFC][M68k] Replace `APInt::zextOrSelf` with `APInt::zext`
This is a follow up to D125558
Added:
Modified:
llvm/lib/Target/M68k/Disassembler/M68kDisassembler.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/M68k/Disassembler/M68kDisassembler.cpp b/llvm/lib/Target/M68k/Disassembler/M68kDisassembler.cpp
index c24bc76c6ca2e..79cd84793bdf8 100644
--- a/llvm/lib/Target/M68k/Disassembler/M68kDisassembler.cpp
+++ b/llvm/lib/Target/M68k/Disassembler/M68kDisassembler.cpp
@@ -120,7 +120,7 @@ DecodeStatus M68kDisassembler::getInstruction(MCInst &Instr, uint64_t &Size,
auto MakeUp = [&](APInt &Insn, unsigned InstrBits) {
unsigned Idx = Insn.getBitWidth() >> 3;
unsigned RoundUp = alignTo(InstrBits, Align(16));
- Insn = Insn.zextOrSelf(RoundUp);
+ Insn = Insn.zext(RoundUp);
RoundUp = RoundUp >> 3;
for (; Idx < RoundUp; Idx += 2) {
Insn.insertBits(support::endian::read16be(&Bytes[Idx]), Idx * 8, 16);
More information about the llvm-commits
mailing list