From e3c6f8ddcf813107a4df14e4c2ebe2ba60c0d585 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 18 Sep 2018 12:01:25 +0000 Subject: [PATCH] Fix signed/unsigned comparison warning. NFCI. llvm-svn: 342469 --- llvm/utils/TableGen/CodeGenDAGPatterns.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp index b813961..31ce745 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp @@ -4508,7 +4508,7 @@ void CodeGenDAGPatterns::GenerateVariants() { // Copy this to all the matching patterns. for (int p = Matches.find_first(); p != -1; p = Matches.find_next(p)) - if (p != i) { + if (p != (int)i) { MatchedPatterns[p] = true; MatchedPredicates[p] = Matches; } -- 2.7.4