[llvm-branch-commits] [llvm] 2804f35 - Fix an unused variable warning
Hans Wennborg via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Feb 12 05:56:31 PST 2020
Author: Hans Wennborg
Date: 2020-02-12T14:54:32+01:00
New Revision: 2804f355820ed5358694d6952db6650000086024
URL: https://github.com/llvm/llvm-project/commit/2804f355820ed5358694d6952db6650000086024
DIFF: https://github.com/llvm/llvm-project/commit/2804f355820ed5358694d6952db6650000086024.diff
LOG: Fix an unused variable warning
(cherry picked from commit ea9850b6c71d975935de15bd4128508b260165c5)
Added:
Modified:
llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
index 634fb89b8e89..66ad120a111f 100644
--- a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
+++ b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
@@ -330,8 +330,8 @@ void ARMConstantIslands::verify() {
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
/// print block size and offset information - debugging
LLVM_DUMP_METHOD void ARMConstantIslands::dumpBBs() {
- BBInfoVector &BBInfo = BBUtils->getBBInfo();
LLVM_DEBUG({
+ BBInfoVector &BBInfo = BBUtils->getBBInfo();
for (unsigned J = 0, E = BBInfo.size(); J !=E; ++J) {
const BasicBlockInfo &BBI = BBInfo[J];
dbgs() << format("%08x %bb.%u\t", BBI.Offset, J)
More information about the llvm-branch-commits
mailing list