[llvm] 2c488a6 - Fix signed/unsigned comparison mismatch warning
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 19 03:15:36 PDT 2022
Author: Simon Pilgrim
Date: 2022-07-19T11:13:31+01:00
New Revision: 2c488a6b35c6d03e34fdd4e7ec87ed6bdc3d3010
URL: https://github.com/llvm/llvm-project/commit/2c488a6b35c6d03e34fdd4e7ec87ed6bdc3d3010
DIFF: https://github.com/llvm/llvm-project/commit/2c488a6b35c6d03e34fdd4e7ec87ed6bdc3d3010.diff
LOG: Fix signed/unsigned comparison mismatch warning
Added:
Modified:
llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
index 1026183c32380..55afea6e89d55 100644
--- a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
+++ b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
@@ -5072,7 +5072,7 @@ TEST_F(OpenMPIRBuilderTest, CreateTaskgroupWithTasks) {
Function *TaskAllocFn =
OMPBuilder.getOrCreateRuntimeFunctionPtr(OMPRTL___kmpc_omp_task_alloc);
- ASSERT_EQ(TaskAllocFn->getNumUses(), 2);
+ ASSERT_EQ(TaskAllocFn->getNumUses(), 2u);
CallInst *FirstTaskAllocCall =
dyn_cast_or_null<CallInst>(*TaskAllocFn->users().begin());
More information about the llvm-commits
mailing list