summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorHartmut Kaiser <hartmut.kaiser@gmail.com>2007-10-24 00:06:31 +0000
committerHartmut Kaiser <hartmut.kaiser@gmail.com>2007-10-24 00:06:31 +0000
commit36309e56ebedb002ebea3715003e5ef9a54ae2b6 (patch)
tree6c4a22f9a60b893c311e924eb2e7eccb6ee4cc37 /llvm
parentf8b2612b0cc48669816dcc8a7d86e4080528941b (diff)
downloadbcm5719-llvm-36309e56ebedb002ebea3715003e5ef9a54ae2b6.tar.gz
bcm5719-llvm-36309e56ebedb002ebea3715003e5ef9a54ae2b6.zip
Silenced a VC++ warning.
llvm-svn: 43276
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Bitcode/BitstreamReader.h2
-rw-r--r--llvm/include/llvm/Bitcode/Serialization.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Bitcode/BitstreamReader.h b/llvm/include/llvm/Bitcode/BitstreamReader.h
index 86a26c2c20e..25e11ced932 100644
--- a/llvm/include/llvm/Bitcode/BitstreamReader.h
+++ b/llvm/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/llvm/include/llvm/Bitcode/Serialization.h b/llvm/include/llvm/Bitcode/Serialization.h
index 356a75c104b..eeaac4a8a39 100644
--- a/llvm/include/llvm/Bitcode/Serialization.h
+++ b/llvm/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.
OpenPOWER on IntegriCloud