From aa37342b3b548a75a4d8ce330f58a361a9ce22f4 Mon Sep 17 00:00:00 2001 From: OCHyams Date: Mon, 7 Nov 2022 12:33:23 +0000 Subject: [PATCH] Reapply: 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 --- llvm/unittests/IR/DebugInfoTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/unittests/IR/DebugInfoTest.cpp b/llvm/unittests/IR/DebugInfoTest.cpp index b7570df..e58b4f5 100644 --- a/llvm/unittests/IR/DebugInfoTest.cpp +++ b/llvm/unittests/IR/DebugInfoTest.cpp @@ -506,7 +506,7 @@ TEST(AssignmentTrackingTest, Utils) { // 4. 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( -- 2.7.4