[llvm] 028df7f - Fix warning: comparison of integers of different signs
via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 7 04:36:40 PST 2022
Author: OCHyams
Date: 2022-11-07T12:35:51Z
New Revision: 028df7fab11bd8c26d8f5689e049186eb8b39092
URL: https://github.com/llvm/llvm-project/commit/028df7fab11bd8c26d8f5689e049186eb8b39092
DIFF: https://github.com/llvm/llvm-project/commit/028df7fab11bd8c26d8f5689e049186eb8b39092.diff
LOG: Fix warning: comparison of integers of different signs
Buildbot failure:
https://lab.llvm.org/buildbot/#/builders/36/builds/26925
Review & commit:
https://reviews.llvm.org/D132224
https://reviews.llvm.org/rG171f7024cc82e8702abebdedb699d37b50574be7
Added:
Modified:
llvm/unittests/IR/DebugInfoTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/IR/DebugInfoTest.cpp b/llvm/unittests/IR/DebugInfoTest.cpp
index 9888bb6dd8e5..7cdd3ae2bb84 100644
--- a/llvm/unittests/IR/DebugInfoTest.cpp
+++ b/llvm/unittests/IR/DebugInfoTest.cpp
@@ -486,7 +486,7 @@ TEST(AssignmentTrackingTest, Utils) {
// 3. Check that deleting works and applies only to the target function.
at::deleteAll(&Fun1);
// There should now only be the alloca and ret in fun1.
- EXPECT_EQ(Fun1.begin()->size(), 2);
+ EXPECT_EQ(Fun1.begin()->size(), 2u);
// fun2's alloca should have the same DIAssignID and remain linked to its
// llvm.dbg.assign.
EXPECT_EQ(Fun2ID, cast_or_null<DIAssignID>(
More information about the llvm-commits
mailing list