summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-11-11 23:58:11 +0000
committerZachary Turner <zturner@google.com>2016-11-11 23:58:11 +0000
commit804d50286d6c780aa6a3e318a77efe5b674d29e8 (patch)
tree1f949244abc0bb19ac311786c069c4d525b8fc3e /llvm/lib
parent11db2642fb54487ef18c18cc8555d7ff2f5e823b (diff)
downloadbcm5719-llvm-804d50286d6c780aa6a3e318a77efe5b674d29e8.tar.gz
bcm5719-llvm-804d50286d6c780aa6a3e318a77efe5b674d29e8.zip
Fix -Werror build with clang-cl.
llvm-svn: 286683
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/IR/AsmWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp
index 7334c988f29..5eb93ceda32 100644
--- a/llvm/lib/IR/AsmWriter.cpp
+++ b/llvm/lib/IR/AsmWriter.cpp
@@ -1330,7 +1330,7 @@ static void WriteConstantInternal(raw_ostream &Out, const Constant *CV,
}
for (User::const_op_iterator OI=CE->op_begin(); OI != CE->op_end(); ++OI) {
- if (InRangeOp && (OI - CE->op_begin()) == *InRangeOp)
+ if (InRangeOp && unsigned(OI - CE->op_begin()) == *InRangeOp)
Out << "inrange ";
TypePrinter.print((*OI)->getType(), Out);
Out << ' ';
OpenPOWER on IntegriCloud