[llvm-dev] Type unmatched after replacing functions
Tim Northover via llvm-dev
llvm-dev at lists.llvm.org
Thu Sep 19 02:00:54 PDT 2019
On Thu, 19 Sep 2019 at 09:45, Will Lester <hslester96 at gmail.com> wrote:
> > Are you trying to be more selective than Value::replaceAllUsesWith
> > would allow for some reason?
>
> I'm very glad to select another way if there is a better one. :)
OK, then it sounds like that might be exactly what you need:
replaceAllUses of the function you're discarding with an appropriately
casted version of the new function. It automatically rebuilds any
Constant users it finds.
Cheers.
Tim.
More information about the llvm-dev
mailing list