[llvm] r363534 - [ARM] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after D63265
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 17 02:26:50 PDT 2019
Author: maskray
Date: Mon Jun 17 02:26:50 2019
New Revision: 363534
URL: http://llvm.org/viewvc/llvm-project?rev=363534&view=rev
Log:
[ARM] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after D63265
Modified:
llvm/trunk/lib/Target/ARM/ARMConstantIslandPass.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMConstantIslandPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMConstantIslandPass.cpp?rev=363534&r1=363533&r2=363534&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMConstantIslandPass.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMConstantIslandPass.cpp Mon Jun 17 02:26:50 2019
@@ -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) {
More information about the llvm-commits
mailing list