Silenced a VC++ warning.
authorHartmut Kaiser <hartmut.kaiser@gmail.com>
Wed, 24 Oct 2007 00:06:31 +0000 (00:06 +0000)
committerHartmut Kaiser <hartmut.kaiser@gmail.com>
Wed, 24 Oct 2007 00:06:31 +0000 (00:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43276 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Bitcode/BitstreamReader.h
include/llvm/Bitcode/Serialization.h

index 86a26c2c20e7a75d6eae1b9c733ce5ef65e73ebf..25e11ced932ec74e55656f54e40532fa7f8de38d 100644 (file)
@@ -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;
index 356a75c104bc303216b1411431cb3e1da408a16e..eeaac4a8a390884b40de2a261b003c5ea7e7dc3a 100644 (file)
@@ -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.