[Orc] Fix bool serialization for RawByteChannels.
authorLang Hames <lhames@gmail.com>
Thu, 13 Apr 2017 05:23:50 +0000 (05:23 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 13 Apr 2017 05:23:50 +0000 (05:23 +0000)
commit7d3aaedc13c01178e5981015a77966625720a44b
tree878e8e02539d35c57f8294e8741635ee3f13fee1
parent068655911eb7a194f3b803029306f368125b9342
[Orc] Fix bool serialization for RawByteChannels.

The bool type may be larger than the char type, so assuming we can cast from
bool to char and write a byte out to the stream is unsafe.

Hopefully this will get RPCUtilsTest.ReturnExpectedFailure passing on the bots.

llvm-svn: 300174
llvm/include/llvm/ExecutionEngine/Orc/RawByteChannel.h