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.

Ciao,

Duncan.
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to