[llvm] r233502 - Silence sign compare warning. NFC.

Benjamin Kramer benny.kra at googlemail.com
Sun Mar 29 13:49:04 PDT 2015


Author: d0k
Date: Sun Mar 29 15:49:03 2015
New Revision: 233502

URL: http://llvm.org/viewvc/llvm-project?rev=233502&view=rev
Log:
Silence sign compare warning. NFC.

Modified:
    llvm/trunk/lib/IR/InlineAsm.cpp

Modified: llvm/trunk/lib/IR/InlineAsm.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/InlineAsm.cpp?rev=233502&r1=233501&r2=233502&view=diff
==============================================================================
--- llvm/trunk/lib/IR/InlineAsm.cpp (original)
+++ llvm/trunk/lib/IR/InlineAsm.cpp Sun Mar 29 15:49:03 2015
@@ -168,7 +168,8 @@ bool InlineAsm::ConstraintInfo::Parse(St
         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();





More information about the llvm-commits mailing list