OSDN Git Service

Fix RValue<T> construction from incorrect types.
authorNicolas Capens <capn@google.com>
Mon, 24 Jul 2017 20:54:44 +0000 (16:54 -0400)
committerNicolas Capens <nicolascapens@google.com>
Wed, 26 Jul 2017 19:27:11 +0000 (19:27 +0000)
commitbea4dce934c96284fb60f21c9a1698c86e1fd703
tree5d2a6df47392f7136f1c46d02a1e02ae75b21267
parenta5eaa8dee8f46778b43d2db33b3eb8d436b15032
Fix RValue<T> construction from incorrect types.

When constructing an RValue<T> from a Value, the types should match.
Else a bitcast is required.

Bug swiftshader:48

Change-Id: I5073091524d2f56681dab052c9f84a06b3be7b4f
Reviewed-on: https://swiftshader-review.googlesource.com/10908
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
src/Reactor/LLVMReactor.cpp
src/Reactor/Reactor.hpp
src/Reactor/SubzeroReactor.cpp