Skip to content

Commit 0defd83

Browse files
committed
[AArch64] Avoid unused variable warnings in release builds
This used to be under !NDEBUG before 0a17427, so just put that back. The code only consists of assertions.
1 parent ba3fa39 commit 0defd83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/AArch64/AArch64SelectionDAGInfo.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ bool AArch64SelectionDAGInfo::isTargetStrictFPOpcode(unsigned Opcode) const {
3535

3636
void AArch64SelectionDAGInfo::verifyTargetNode(const SelectionDAG &DAG,
3737
const SDNode *N) const {
38+
#ifndef NDEBUG
3839
switch (N->getOpcode()) {
3940
default:
4041
break;
@@ -110,6 +111,7 @@ void AArch64SelectionDAGInfo::verifyTargetNode(const SelectionDAG &DAG,
110111
break;
111112
}
112113
}
114+
#endif
113115
}
114116

115117
SDValue AArch64SelectionDAGInfo::EmitMOPS(unsigned Opcode, SelectionDAG &DAG,

0 commit comments

Comments
 (0)