diff options
author | Mats Jun Larsen <mats@jun.codes> | 2025-01-21 00:32:56 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-21 00:32:56 +0900 |
commit | 416f1c465db62d829283f6902ef35e027e127aa7 (patch) | |
tree | 876ba62997d586d463159f4cfe977d4c0cea5b05 /llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp | |
parent | 9c7e02d579db7ba81a414cd2212ce2b48b927941 (diff) | |
download | llvm-416f1c465db62d829283f6902ef35e027e127aa7.zip llvm-416f1c465db62d829283f6902ef35e027e127aa7.tar.gz llvm-416f1c465db62d829283f6902ef35e027e127aa7.tar.bz2 |
[IR] Replace of PointerType::get(Type) with opaque version (NFC) (#123617)
In accordance with https://github.com/llvm/llvm-project/issues/123569
In order to keep the patch at reasonable size, this PR only covers for
the llvm subproject, unittests excluded.
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp b/llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp index ee9acf0..7fb84e97 100644 --- a/llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp +++ b/llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp @@ -273,8 +273,8 @@ createLocalIndirectStubsManagerBuilder(const Triple &T) { Constant* createIRTypedAddress(FunctionType &FT, ExecutorAddr Addr) { Constant *AddrIntVal = ConstantInt::get(Type::getInt64Ty(FT.getContext()), Addr.getValue()); - Constant *AddrPtrVal = - ConstantExpr::getIntToPtr(AddrIntVal, PointerType::get(&FT, 0)); + Constant *AddrPtrVal = ConstantExpr::getIntToPtr( + AddrIntVal, PointerType::get(FT.getContext(), 0)); return AddrPtrVal; } |