[llvm-dev] Function - replaceAllUsesWith (original) (raw)
Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Tue Jan 15 06🔞51 PST 2019
- Previous message: [llvm-dev] Function - replaceAllUsesWith
- Next message: [llvm-dev] Function - replaceAllUsesWith
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 15 Jan 2019 at 14:04, Gaier, Bjoern <Bjoern.Gaier at horiba.com> wrote:
Is there a way to copy the value? I want to ensure to use the correct type...
I don't think copying is the issue, you're just passing pointers within a single Context around by the looks of it.
I have just noticed the getPointerCast actually only does ptrtoint but you want inttoptr, without assertions it's possible that's doing bad things in a non-obvious way. It should certainly be getIntToPtr anyway.
Cheers.
Tim.
- Previous message: [llvm-dev] Function - replaceAllUsesWith
- Next message: [llvm-dev] Function - replaceAllUsesWith
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]