Stepan Dyatkovskiy
|
dc2c4b4462
|
Bugfix for PR17099:
Wrong cast operation.
MergeFunctions emits Bitcast instead of pointer-to-integer operation.
Patch fixes MergeFunctions::writeThunk function. It replaces
unconditional Bitcast creation with "Value* createCast(...)" method, that
checks operand types and selects proper instruction.
See unit-test as example.
llvm-svn: 190859
|
2013-09-17 09:36:11 +00:00 |
|