]> granicus.if.org Git - llvm/commit
[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)
commite460ede847d024abd43b936a2658df24c5bb243c
tree399d213e4b764cb1ca00e0cc09a594fbd280b8a9
parent24828a324b222f888672c24498900d365138831d
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300174 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/Orc/RawByteChannel.h