[ARM] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after D63265

llvm-svn: 363534
This commit is contained in:
Fangrui Song 2019-06-17 09:26:50 +00:00
parent 5d6ee76c16
commit 89d6905c59
1 changed files with 1 additions and 1 deletions

View File

@ -291,8 +291,8 @@ char ARMConstantIslands::ID = 0;
/// verify - check BBOffsets, BBSizes, alignment of islands
void ARMConstantIslands::verify() {
BBInfoVector &BBInfo = BBUtils->getBBInfo();
#ifndef NDEBUG
BBInfoVector &BBInfo = BBUtils->getBBInfo();
assert(std::is_sorted(MF->begin(), MF->end(),
[&BBInfo](const MachineBasicBlock &LHS,
const MachineBasicBlock &RHS) {