Hi Chris, > I think that getOrInsertFunction should just return the function (not > a bitcast) if the function type other than the attributes are the same.
once PR1146 is done, what should happen here? Suppose the new function and the old differ in some essential attribute (eg: byval). It won't be possible to bitcast the old function to the new function anymore because the attributes will no longer be part of the type... Ciao, Duncan. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits