Displaying 1 result from an estimated 1 matches for "new_return_type".
2017 Mar 24
2
Problem about API difference between LLVM3.5 and LLVM3.9
...fied function. In
LLVM3.5, the pass can work properly. However, when I tried to transplant
the pass to LLVM3.9, the error "Argument value does not match function
argument type!" occured.
The core snippet of my pass is as follows: 'func' denotes original function
in a Module; 'new_return_type' denotes the duplicate of original function's
return type; 'arg_types' denotes the duplicated argument type.
And I have analysed the cause of error "Argument value does not match
function argument type!" and I can determine that the error APIs are
mutateType()(3rd line)or...