diff options
author | Jay Foad <jay.foad@amd.com> | 2023-02-03 10:04:28 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@amd.com> | 2023-02-07 11:50:57 +0000 |
commit | a07584d57d7312d6bd5f266dc8cea915fb2b434b (patch) | |
tree | 1084fb65edf68d3a46d1a3f111043664e47bd5a6 /llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp | |
parent | d170a254a53bce54596ed0f94aa86ffa3eede42b (diff) | |
download | llvm-a07584d57d7312d6bd5f266dc8cea915fb2b434b.zip llvm-a07584d57d7312d6bd5f266dc8cea915fb2b434b.tar.gz llvm-a07584d57d7312d6bd5f266dc8cea915fb2b434b.tar.bz2 |
[CodeGen] Make more use of MachineOperand::getOperandNo. NFC.
Differential Revision: https://reviews.llvm.org/D143252
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp index eeec0fc..08483b7 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp @@ -352,7 +352,7 @@ bool WebAssemblyExplicitLocals::runOnMachineFunction(MachineFunction &MF) { unsigned LocalId = getLocalId(Reg2Local, MFI, CurLocal, OldReg); // If this register operand is tied to another operand, we can't // change it to an immediate. Untie it first. - MI.untieRegOperand(MI.getOperandNo(&MO)); + MI.untieRegOperand(MO.getOperandNo()); MO.ChangeToImmediate(LocalId); continue; } @@ -369,7 +369,7 @@ bool WebAssemblyExplicitLocals::runOnMachineFunction(MachineFunction &MF) { if (MI.isInlineAsm()) { unsigned LocalId = getLocalId(Reg2Local, MFI, CurLocal, OldReg); // Untie it first if this reg operand is tied to another operand. - MI.untieRegOperand(MI.getOperandNo(&MO)); + MI.untieRegOperand(MO.getOperandNo()); MO.ChangeToImmediate(LocalId); continue; } |