[X86] Fast-ISel was incorrectly always killing the source of a truncate.
[oota-llvm.git] / lib / IR / InlineAsm.cpp
index 47dce20a517f1543ed5a94a4bfd49608df0dfd9c..aa9e0272ad10f43b5e69e47a63864be643a08d1d 100644 (file)
@@ -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();