[llvm] 7c63804 - Fix [-Werror, -Wsign-compare] in dominator unit test.
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 6 14:50:25 PDT 2020
Author: Eric Christopher
Date: 2020-07-06T14:50:13-07:00
New Revision: 7c63804383f6baed3d934b3569f406c078869567
URL: https://github.com/llvm/llvm-project/commit/7c63804383f6baed3d934b3569f406c078869567
DIFF: https://github.com/llvm/llvm-project/commit/7c63804383f6baed3d934b3569f406c078869567.diff
LOG: Fix [-Werror,-Wsign-compare] in dominator unit test.
Added:
Modified:
llvm/unittests/IR/DominatorTreeTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/IR/DominatorTreeTest.cpp b/llvm/unittests/IR/DominatorTreeTest.cpp
index 16c12b2102a9..afb620f338e6 100644
--- a/llvm/unittests/IR/DominatorTreeTest.cpp
+++ b/llvm/unittests/IR/DominatorTreeTest.cpp
@@ -805,7 +805,7 @@ TEST(DominatorTree, InsertFromUnreachable) {
BasicBlock *To = B.getOrAddBlock(LastUpdate->Edge.To);
PDT.insertEdge(From, To);
EXPECT_TRUE(PDT.verify());
- EXPECT_EQ(PDT.root_size(), 2);
+ EXPECT_EQ(PDT.root_size(), 2UL);
// Make sure we can use a const pointer with getNode.
const BasicBlock *BB5 = B.getOrAddBlock("5");
EXPECT_NE(PDT.getNode(BB5), nullptr);
More information about the llvm-commits
mailing list