From: OCHyams Date: Mon, 7 Nov 2022 12:33:23 +0000 (+0000) Subject: Fix warning: comparison of integers of different signs X-Git-Tag: upstream/17.0.6~28350 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=028df7fab11bd8c26d8f5689e049186eb8b39092;p=platform%2Fupstream%2Fllvm.git 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 --- diff --git a/llvm/unittests/IR/DebugInfoTest.cpp b/llvm/unittests/IR/DebugInfoTest.cpp index 9888bb6..7cdd3ae 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(