Skip to content

Commit f0ac6f9

Browse files
[Transforms] Fix a warning
This patch fixes: llvm/lib/Transforms/Scalar/ConstraintElimination.cpp:1112:13: error: unused function 'dumpUnpackedICmp' [-Werror,-Wunused-function]
1 parent f2464ca commit f0ac6f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/Scalar/ConstraintElimination.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,13 +1109,15 @@ void State::addInfoFor(BasicBlock &BB) {
11091109
CmpI->getOperand(1)));
11101110
}
11111111

1112+
#ifndef NDEBUG
11121113
static void dumpUnpackedICmp(raw_ostream &OS, ICmpInst::Predicate Pred,
11131114
Value *LHS, Value *RHS) {
11141115
OS << "icmp " << Pred << ' ';
11151116
LHS->printAsOperand(OS, /*PrintType=*/true);
11161117
OS << ", ";
11171118
RHS->printAsOperand(OS, /*PrintType=*/false);
11181119
}
1120+
#endif
11191121

11201122
namespace {
11211123
/// Helper to keep track of a condition and if it should be treated as negated

0 commit comments

Comments
 (0)