mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-03 11:23:58 +00:00
[Transforms] Fix a warning
This patch fixes: llvm/lib/Transforms/Scalar/ConstraintElimination.cpp:1112:13: error: unused function 'dumpUnpackedICmp' [-Werror,-Wunused-function]
This commit is contained in:
parent
f2464ca317
commit
f0ac6f92a7
@ -1109,6 +1109,7 @@ void State::addInfoFor(BasicBlock &BB) {
|
||||
CmpI->getOperand(1)));
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
static void dumpUnpackedICmp(raw_ostream &OS, ICmpInst::Predicate Pred,
|
||||
Value *LHS, Value *RHS) {
|
||||
OS << "icmp " << Pred << ' ';
|
||||
@ -1116,6 +1117,7 @@ static void dumpUnpackedICmp(raw_ostream &OS, ICmpInst::Predicate Pred,
|
||||
OS << ", ";
|
||||
RHS->printAsOperand(OS, /*PrintType=*/false);
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
/// Helper to keep track of a condition and if it should be treated as negated
|
||||
|
Loading…
Reference in New Issue
Block a user