1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

[NFC] Move definition of variable now only used in debug builds

This commit is contained in:
Jordan Rupprecht 2020-09-09 20:23:59 -07:00
parent 85362afc67
commit 513836d5fa

View File

@ -2274,8 +2274,8 @@ bool AArch64InstructionSelector::select(MachineInstr &I) {
}
unsigned MemSizeInBits = MemSizeInBytes * 8;
const Register PtrReg = I.getOperand(1).getReg();
#ifndef NDEBUG
const Register PtrReg = I.getOperand(1).getReg();
const RegisterBank &PtrRB = *RBI.getRegBank(PtrReg, MRI, TRI);
// Sanity-check the pointer register.
assert(PtrRB.getID() == AArch64::GPRRegBankID &&