Skip to content

Commit 95e5a99

Browse files
authored
[Bitcode] Get rid of compiler message (#113428)
Insert explicit cast from an enumerator to unsigned int, because some compilers issue a warning on signed vs unsigned comparison, see: #110805 (comment).
1 parent a91ebcd commit 95e5a99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Bitcode/Reader/BitcodeReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ class BitcodeReader : public BitcodeReaderBase, public GVMaterializer {
798798
if (Slot == Record.size())
799799
return true;
800800
unsigned ValID = Record[Slot++];
801-
if (ValID != bitc::OB_METADATA) {
801+
if (ValID != static_cast<unsigned>(bitc::OB_METADATA)) {
802802
unsigned TypeId;
803803
return getValueTypePair(Record, --Slot, InstNum, ResVal, TypeId,
804804
ConstExprInsertBB);

0 commit comments

Comments
 (0)