[llvm] ea9850b - Fix an unused variable warning
Hans Wennborg via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 10 05:09:11 PST 2020
Author: Hans Wennborg
Date: 2020-02-10T14:08:18+01:00
New Revision: ea9850b6c71d975935de15bd4128508b260165c5
URL: https://github.com/llvm/llvm-project/commit/ea9850b6c71d975935de15bd4128508b260165c5
DIFF: https://github.com/llvm/llvm-project/commit/ea9850b6c71d975935de15bd4128508b260165c5.diff
LOG: Fix an unused variable warning
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 d3d3b25341fb..e18f63cce109 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-commits
mailing list