Fix SEGV in InlineAsm::ConstraintInfo::Parse.
[oota-llvm.git] / lib / IR / InlineAsm.cpp
index b7309b4f67b8b407345171e3220b234950563a4e..15d3b830b8fc7695c9322ab6c21fdd75bd271339 100644 (file)
@@ -159,7 +159,8 @@ bool InlineAsm::ConstraintInfo::Parse(StringRef Str,
       // If Operand N already has a matching input, reject this.  An output
       // can't be constrained to the same value as multiple inputs.
       if (isMultipleAlternative) {
-        if (multipleAlternativeIndex >= ConstraintsSoFar[N].multipleAlternatives.size())
+        if (multipleAlternativeIndex >=
+            ConstraintsSoFar[N].multipleAlternatives.size())
           return true;
         InlineAsm::SubConstraintInfo &scInfo =
           ConstraintsSoFar[N].multipleAlternatives[multipleAlternativeIndex];