[PATCH] D101363: [ASAN] NFC: Use addrspace cast for pointers in non-zero addrspace
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 28 22:36:53 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG60c60dd13877: [ASAN] NFC: Use addrspace cast for pointers in non-zero addrspace (authored by Reshabh Sharma <Reshabhkumar.Sharma at amd.com>).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101363/new/
https://reviews.llvm.org/D101363
Files:
llvm/lib/Transforms/Utils/ModuleUtils.cpp
Index: llvm/lib/Transforms/Utils/ModuleUtils.cpp
===================================================================
--- llvm/lib/Transforms/Utils/ModuleUtils.cpp
+++ llvm/lib/Transforms/Utils/ModuleUtils.cpp
@@ -89,7 +89,7 @@
Type *Int8PtrTy = llvm::Type::getInt8PtrTy(M.getContext());
for (auto *V : Values) {
- Constant *C = ConstantExpr::getBitCast(V, Int8PtrTy);
+ Constant *C = ConstantExpr::getPointerBitCastOrAddrSpaceCast(V, Int8PtrTy);
if (InitAsSet.insert(C).second)
Init.push_back(C);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101363.341405.patch
Type: text/x-patch
Size: 528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210429/bca1d161/attachment.bin>
More information about the llvm-commits
mailing list