summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lib/IR/InlineAsm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/llvm/lib/IR/InlineAsm.cpp')
-rw-r--r--gnu/llvm/lib/IR/InlineAsm.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/llvm/lib/IR/InlineAsm.cpp b/gnu/llvm/lib/IR/InlineAsm.cpp
index ad22efdf0ef..8667d7aab58 100644
--- a/gnu/llvm/lib/IR/InlineAsm.cpp
+++ b/gnu/llvm/lib/IR/InlineAsm.cpp
@@ -163,6 +163,7 @@ bool InlineAsm::ConstraintInfo::Parse(StringRef Str,
return true;
// Note that operand #n has a matching input.
scInfo.MatchingInput = ConstraintsSoFar.size();
+ assert(scInfo.MatchingInput >= 0);
} else {
if (ConstraintsSoFar[N].hasMatchingInput() &&
(size_t)ConstraintsSoFar[N].MatchingInput !=
@@ -170,6 +171,7 @@ bool InlineAsm::ConstraintInfo::Parse(StringRef Str,
return true;
// Note that operand #n has a matching input.
ConstraintsSoFar[N].MatchingInput = ConstraintsSoFar.size();
+ assert(ConstraintsSoFar[N].MatchingInput >= 0);
}
} else if (*I == '|') {
multipleAlternativeIndex++;