Skip to content

Commit 3c8ea86

Browse files
kazutakahiratagithub-actions[bot]
authored andcommitted
Automerge: [NVPTX] Fix a warning
This patch fixes: llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h:128:21: error: unused variable '_' [-Werror,-Wunused-variable]
2 parents 6368f89 + 94aa4bf commit 3c8ea86

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,10 @@ class LLVM_LIBRARY_VISIBILITY NVPTXAsmPrinter : public AsmPrinter {
125125
}
126126

127127
void addZeros(unsigned Num) {
128-
for (unsigned _ : llvm::seq(Num))
128+
for (unsigned _ : llvm::seq(Num)) {
129+
(void)_;
129130
addByte(0);
131+
}
130132
}
131133

132134
void addSymbol(const Value *GVar, const Value *GVarBeforeStripping) {

0 commit comments

Comments
 (0)