Silenced a VC++ warning.

llvm-svn: 43276
This commit is contained in:
Hartmut Kaiser 2007-10-24 00:06:31 +00:00
parent f8b2612b0c
commit 36309e56eb
2 changed files with 2 additions and 2 deletions

View 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;

View 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.