aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2024-10-23 22:40:02 +0700
committerGitHub <noreply@github.com>2024-10-23 22:40:02 +0700
commit95e5a999ab8f2a8f163899c6ab445baf901c3c96 (patch)
tree66f6a5add0c7b1a8f462ccd9d079beee908d9b2b /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parenta91ebcdd91cae429762bbed39f569a4016fbf2b1 (diff)
downloadllvm-95e5a999ab8f2a8f163899c6ab445baf901c3c96.zip
llvm-95e5a999ab8f2a8f163899c6ab445baf901c3c96.tar.gz
llvm-95e5a999ab8f2a8f163899c6ab445baf901c3c96.tar.bz2
[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: https://github.com/llvm/llvm-project/pull/110805#issuecomment-2411095723.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 5a6fb50..4aea059 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -798,7 +798,7 @@ private:
if (Slot == Record.size())
return true;
unsigned ValID = Record[Slot++];
- if (ValID != bitc::OB_METADATA) {
+ if (ValID != static_cast<unsigned>(bitc::OB_METADATA)) {
unsigned TypeId;
return getValueTypePair(Record, --Slot, InstNum, ResVal, TypeId,
ConstExprInsertBB);