diff --git a/lib/IR/InlineAsm.cpp b/lib/IR/InlineAsm.cpp index 47dce20a517..aa9e0272ad1 100644 --- a/lib/IR/InlineAsm.cpp +++ b/lib/IR/InlineAsm.cpp @@ -168,7 +168,8 @@ bool InlineAsm::ConstraintInfo::Parse(StringRef Str, scInfo.MatchingInput = ConstraintsSoFar.size(); } else { if (ConstraintsSoFar[N].hasMatchingInput() && - ConstraintsSoFar[N].MatchingInput != ConstraintsSoFar.size()) + (size_t)ConstraintsSoFar[N].MatchingInput != + ConstraintsSoFar.size()) return true; // Note that operand #n has a matching input. ConstraintsSoFar[N].MatchingInput = ConstraintsSoFar.size();