Skip to content

Commit f0f5545

Browse files
authored
[NVPTX] Address warning and typo in fp128 support (#136207)
1 parent 9af61f5 commit f0f5545

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ class LLVM_LIBRARY_VISIBILITY NVPTXAsmPrinter : public AsmPrinter {
125125
}
126126

127127
void addZeros(unsigned Num) {
128-
for (unsigned _ : llvm::seq(Num)) {
129-
(void)_;
128+
for ([[maybe_unused]] unsigned _ : llvm::seq(Num)) {
130129
addByte(0);
131130
}
132131
}

llvm/test/CodeGen/NVPTX/fp128-storage-type.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
22
; RUN: llc < %s -mcpu=sm_20 | FileCheck %s
3-
; RUN: %if ptxas %{ llc < %s-mcpu=sm_20 | %ptxas-verify %}
3+
; RUN: %if ptxas %{ llc < %s -mcpu=sm_20 | %ptxas-verify %}
44

55
target triple = "nvptx64-unknown-cuda"
66

0 commit comments

Comments
 (0)