projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11db264
)
Fix -Werror build with clang-cl.
author
Zachary Turner
<zturner@google.com>
Fri, 11 Nov 2016 23:58:11 +0000
(23:58 +0000)
committer
Zachary Turner
<zturner@google.com>
Fri, 11 Nov 2016 23:58:11 +0000
(23:58 +0000)
llvm-svn: 286683
llvm/lib/IR/AsmWriter.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/AsmWriter.cpp
b/llvm/lib/IR/AsmWriter.cpp
index
7334c98
..
5eb93ce
100644
(file)
--- 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 << ' ';