From 3e0d21d84bef95edbf00e0b3e6d5a584300f1349 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 3 Dec 2019 11:36:12 -0800 Subject: [PATCH] Fix signed mismatch warnings in MetadataTests.cpp --- llvm/unittests/IR/MetadataTest.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/llvm/unittests/IR/MetadataTest.cpp b/llvm/unittests/IR/MetadataTest.cpp index b2be825..424aaa7 100644 --- a/llvm/unittests/IR/MetadataTest.cpp +++ b/llvm/unittests/IR/MetadataTest.cpp @@ -2924,15 +2924,15 @@ TEST_F(DebugVariableTest, DenseMap) { DebugVariableMap.insert({DebugVariableB, 6}); DebugVariableMap.insert({DebugVariableFragB, 12}); - EXPECT_EQ(DebugVariableMap.count(DebugVariableA), 1); - EXPECT_EQ(DebugVariableMap.count(DebugVariableInlineA), 1); - EXPECT_EQ(DebugVariableMap.count(DebugVariableB), 1); - EXPECT_EQ(DebugVariableMap.count(DebugVariableFragB), 1); - - EXPECT_EQ(DebugVariableMap.find(DebugVariableA)->second, 2); - EXPECT_EQ(DebugVariableMap.find(DebugVariableInlineA)->second, 3); - EXPECT_EQ(DebugVariableMap.find(DebugVariableB)->second, 6); - EXPECT_EQ(DebugVariableMap.find(DebugVariableFragB)->second, 12); + EXPECT_EQ(DebugVariableMap.count(DebugVariableA), 1u); + EXPECT_EQ(DebugVariableMap.count(DebugVariableInlineA), 1u); + EXPECT_EQ(DebugVariableMap.count(DebugVariableB), 1u); + EXPECT_EQ(DebugVariableMap.count(DebugVariableFragB), 1u); + + EXPECT_EQ(DebugVariableMap.find(DebugVariableA)->second, 2u); + EXPECT_EQ(DebugVariableMap.find(DebugVariableInlineA)->second, 3u); + EXPECT_EQ(DebugVariableMap.find(DebugVariableB)->second, 6u); + EXPECT_EQ(DebugVariableMap.find(DebugVariableFragB)->second, 12u); } } // end namespace -- 2.7.4