Skip to content

Conversation

ro-i
Copy link
Contributor

@ro-i ro-i commented Aug 25, 2025

Apparently, some buildbots build unittests with -Werror,-Wsign-compare: https://lab.llvm.org/buildbot/#/builders/145/builds/9299

@ro-i ro-i requested a review from arsenm August 25, 2025 12:00
@llvmbot
Copy link
Member

llvmbot commented Aug 25, 2025

@llvm/pr-subscribers-backend-amdgpu

Author: Robert Imschweiler (ro-i)

Changes

Apparently, some buildbots build unittests with -Werror,-Wsign-compare: https://lab.llvm.org/buildbot/#/builders/145/builds/9299


Full diff: https://github.com/llvm/llvm-project/pull/155235.diff

1 Files Affected:

  • (modified) llvm/unittests/Target/AMDGPU/AMDGPUUnitTests.cpp (+1-1)
diff --git a/llvm/unittests/Target/AMDGPU/AMDGPUUnitTests.cpp b/llvm/unittests/Target/AMDGPU/AMDGPUUnitTests.cpp
index d01d808f988ba..593991c71d706 100644
--- a/llvm/unittests/Target/AMDGPU/AMDGPUUnitTests.cpp
+++ b/llvm/unittests/Target/AMDGPU/AMDGPUUnitTests.cpp
@@ -335,7 +335,7 @@ TEST(AMDGPU, TestGetNamedOperandIdx) {
       if (OpName == AMDGPU::OpName::NUM_OPERAND_NAMES)
         continue;
       int16_t RetrievedIdx = AMDGPU::getNamedOperandIdx(Opcode, OpName);
-      EXPECT_EQ(Idx, RetrievedIdx)
+      EXPECT_EQ(Idx, static_cast<unsigned>(RetrievedIdx))
           << "Opcode " << Opcode << " (" << MCII->getName(Opcode) << ')';
     }
   }

@ro-i ro-i enabled auto-merge (squash) August 25, 2025 12:07
@ro-i ro-i disabled auto-merge August 25, 2025 12:35
@ro-i ro-i merged commit 704a10c into llvm:main Aug 25, 2025
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants