Skip to content

Commit 8b17916

Browse files
committed
[RISCV] Fix -Wunused-function in RISCVVLOptimizer.cpp (NFC)
/llvm-project/llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp:125:21: error: unused function 'operator<<' [-Werror,-Wunused-function] static raw_ostream &operator<<(raw_ostream &OS, const OperandInfo &OI) { ^ 1 error generated.
1 parent c13f806 commit 8b17916

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ struct OperandInfo {
122122
}
123123
};
124124

125+
LLVM_ATTRIBUTE_UNUSED
125126
static raw_ostream &operator<<(raw_ostream &OS, const OperandInfo &OI) {
126127
OI.print(OS);
127128
return OS;

0 commit comments

Comments
 (0)