[llvm-dev] Type unmatched after replacing functions

Will Lester via llvm-dev llvm-dev at lists.llvm.org
Thu Sep 19 01:44:53 PDT 2019


On Thu, Sep 19, 2019 at 4:34 PM Tim Northover <t.p.northover at gmail.com> wrote:
>
> Hi Will,
>
> On Thu, 19 Sep 2019 at 09:21, Will Lester via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
> > The function pointers are often put in the initializers of global variables, and
> > they can not be simply replaced by a bitcast ConstantExpr since setOperand()
> > cannot be used for Constant.
>
> 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. :)

>
> Cheers.
>
> Tim.


More information about the llvm-dev mailing list