llvm.org GIT mirror llvm / c53cf7e
[GlobalISel][AArch64] Extract a variable out of an NDEBUG block. NFC. r298863 used PtrReg, but that's never defined in release builds. Fix it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298869 91177308-0d34-0410-b5e6-96231b3b80d8 Ahmed Bougacha 3 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
753753 return false;
754754 }
755755
756 const unsigned PtrReg = I.getOperand(1).getReg();
756757 #ifndef NDEBUG
758 const RegisterBank &PtrRB = *RBI.getRegBank(PtrReg, MRI, TRI);
757759 // Sanity-check the pointer register.
758 const unsigned PtrReg = I.getOperand(1).getReg();
759 const RegisterBank &PtrRB = *RBI.getRegBank(PtrReg, MRI, TRI);
760760 assert(PtrRB.getID() == AArch64::GPRRegBankID &&
761761 "Load/Store pointer operand isn't a GPR");
762762 assert(MRI.getType(PtrReg).isPointer() &&