summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-03-29 20:49:03 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-03-29 20:49:03 +0000
commit273957116887aa34b0a517cb90151458023c4ec3 (patch)
treea8ba1ff1a7cf51379e30312aee0deec91fcacdf8 /llvm/lib/IR
parentbe40996cfe7a8ae40e065120a40a15ead80ea393 (diff)
downloadbcm5719-llvm-273957116887aa34b0a517cb90151458023c4ec3.tar.gz
bcm5719-llvm-273957116887aa34b0a517cb90151458023c4ec3.zip
Silence sign compare warning. NFC.
llvm-svn: 233502
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r--llvm/lib/IR/InlineAsm.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/IR/InlineAsm.cpp b/llvm/lib/IR/InlineAsm.cpp
index 47dce20a517..aa9e0272ad1 100644
--- a/llvm/lib/IR/InlineAsm.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud