diff options
author | Hartmut Kaiser <hartmut.kaiser@gmail.com> | 2007-10-24 00:06:31 +0000 |
---|---|---|
committer | Hartmut Kaiser <hartmut.kaiser@gmail.com> | 2007-10-24 00:06:31 +0000 |
commit | fc44f052656c68258a5b330c94a6ab3b95160b8d (patch) | |
tree | 6df739ce0cc6a97a4816b70b44ef01b9c798ebb7 /include/llvm | |
parent | 45d48d502e791095e115bf38394fe6d0108df0c7 (diff) | |
download | external_llvm-fc44f052656c68258a5b330c94a6ab3b95160b8d.zip external_llvm-fc44f052656c68258a5b330c94a6ab3b95160b8d.tar.gz external_llvm-fc44f052656c68258a5b330c94a6ab3b95160b8d.tar.bz2 |
Silenced a VC++ warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43276 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Bitcode/BitstreamReader.h | 2 | ||||
-rw-r--r-- | include/llvm/Bitcode/Serialization.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Bitcode/BitstreamReader.h b/include/llvm/Bitcode/BitstreamReader.h index 86a26c2..25e11ce 100644 --- a/include/llvm/Bitcode/BitstreamReader.h +++ b/include/llvm/Bitcode/BitstreamReader.h @@ -385,7 +385,7 @@ public: BitCodeAbbrev *Abbv = new BitCodeAbbrev(); unsigned NumOpInfo = ReadVBR(5); for (unsigned i = 0; i != NumOpInfo; ++i) { - bool IsLiteral = Read(1); + bool IsLiteral = Read(1) ? true : false; if (IsLiteral) { Abbv->Add(BitCodeAbbrevOp(ReadVBR64(8))); continue; diff --git a/include/llvm/Bitcode/Serialization.h b/include/llvm/Bitcode/Serialization.h index 356a75c..eeaac4a 100644 --- a/include/llvm/Bitcode/Serialization.h +++ b/include/llvm/Bitcode/Serialization.h @@ -70,7 +70,7 @@ public: } uint64_t ReadInt(unsigned bits = 32); - bool ReadBool() { return ReadInt(1); } + bool ReadBool() { return ReadInt(1) ? true : false; } // FIXME: Substitute a better implementation which calculates the minimum // number of bits needed to serialize the enum. |