From 513836d5fa7165d5b11134c9cc4ab90908a5f995 Mon Sep 17 00:00:00 2001 From: Jordan Rupprecht Date: Wed, 9 Sep 2020 20:23:59 -0700 Subject: [PATCH] [NFC] Move definition of variable now only used in debug builds --- lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp b/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp index 228db83533c..33fb9b7287d 100644 --- a/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp +++ b/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp @@ -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 &&