[llvm-commits] jit failures due to attributes changes

Duncan Sands baldrick at free.fr
Sun Nov 25 02:13:03 PST 2007

Hi Chris,

> The problem here is that getOrInsertFunction is returning a bitcast of  
> the exit function (with the type above) to a void(int)* type.
> I think that getOrInsertFunction should just return the function (not  
> a bitcast) if the function type other than the attributes are the same.

I think it would be wrong to ignore attributes altogether, since some
attributes really change the function (by changing the calling convention
for example).  My plan is to have some helpers for determining when the
differences between two sets of attributes are harmless.



More information about the llvm-commits mailing list