[llvm-commits] [llvm] r43276 - in /llvm/trunk/include/llvm/Bitcode: BitstreamReader.h Serialization.h
Hartmut Kaiser
hartmut.kaiser at gmail.com
Tue Oct 23 17:06:31 PDT 2007
Author: hkaiser
Date: Tue Oct 23 19:06:31 2007
New Revision: 43276
URL: http://llvm.org/viewvc/llvm-project?rev=43276&view=rev
Log:
Silenced a VC++ warning.
Modified:
llvm/trunk/include/llvm/Bitcode/BitstreamReader.h
llvm/trunk/include/llvm/Bitcode/Serialization.h
Modified: llvm/trunk/include/llvm/Bitcode/BitstreamReader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/BitstreamReader.h?rev=43276&r1=43275&r2=43276&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Bitcode/BitstreamReader.h (original)
+++ llvm/trunk/include/llvm/Bitcode/BitstreamReader.h Tue Oct 23 19:06:31 2007
@@ -385,7 +385,7 @@
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;
Modified: llvm/trunk/include/llvm/Bitcode/Serialization.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/Serialization.h?rev=43276&r1=43275&r2=43276&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Bitcode/Serialization.h (original)
+++ llvm/trunk/include/llvm/Bitcode/Serialization.h Tue Oct 23 19:06:31 2007
@@ -70,7 +70,7 @@
}
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.
More information about the llvm-commits
mailing list