projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef40e27
)
Silencing a -Wsign-compare warning; NFC.
author
Aaron Ballman
<aaron@aaronballman.com>
Fri, 18 Sep 2015 13:31:42 +0000
(13:31 +0000)
committer
Aaron Ballman
<aaron@aaronballman.com>
Fri, 18 Sep 2015 13:31:42 +0000
(13:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247986
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.cpp
patch
|
blob
|
history
diff --git
a/lib/Bitcode/Reader/BitcodeReader.cpp
b/lib/Bitcode/Reader/BitcodeReader.cpp
index f8d6f785a10126b5942e1e7a3ee94568239d4395..f38f26cd6365cb043f8d9321c9ec684a7ddea8b5 100644
(file)
--- a/
lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/
lib/Bitcode/Reader/BitcodeReader.cpp
@@
-3274,7
+3274,7
@@
std::error_code BitcodeReader::parseModule(bool Resume,
case bitc::MODULE_CODE_ALIAS:
case bitc::MODULE_CODE_ALIAS_OLD: {
bool NewRecord = BitCode == bitc::MODULE_CODE_ALIAS;
- if (Record.size() < (3 + NewRecord))
+ if (Record.size() < (3 +
(unsigned)
NewRecord))
return error("Invalid record");
unsigned OpNum = 0;
Type *Ty = getTypeByID(Record[OpNum++]);