[llvm] 52f0837 - [NFC] Move definition of variable now only used in debug builds
Jordan Rupprecht via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 9 20:27:46 PDT 2020
Author: Jordan Rupprecht
Date: 2020-09-09T20:23:59-07:00
New Revision: 52f0837778b6f3b742b36c22b7c608535a52097b
URL: https://github.com/llvm/llvm-project/commit/52f0837778b6f3b742b36c22b7c608535a52097b
DIFF: https://github.com/llvm/llvm-project/commit/52f0837778b6f3b742b36c22b7c608535a52097b.diff
LOG: [NFC] Move definition of variable now only used in debug builds
Added:
Modified:
llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp b/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
index 228db83533cdf..33fb9b7287d5c 100644
--- a/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
+++ b/llvm/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 &&
More information about the llvm-commits
mailing list