[PATCH] D125736: [OpaquePtr][BitcodeReader] Explicitly turn off opaque pointers if we see a typed pointer
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 17 08:44:51 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG470910c4ad8a: [OpaquePtr][BitcodeReader] Explicitly turn off opaque pointers if we see a… (authored by aeubanks).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125736/new/
https://reviews.llvm.org/D125736
Files:
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
Index: llvm/lib/Bitcode/Reader/BitcodeReader.cpp
===================================================================
--- llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -1890,6 +1890,8 @@
if (!ResultTy ||
!PointerType::isValidElementType(ResultTy))
return error("Invalid type");
+ if (LLVM_UNLIKELY(!Context.hasSetOpaquePointersValue()))
+ Context.setOpaquePointers(false);
ContainedIDs.push_back(Record[0]);
ResultTy = PointerType::get(ResultTy, AddressSpace);
break;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125736.430083.patch
Type: text/x-patch
Size: 572 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220517/6ba2aa49/attachment.bin>
More information about the llvm-commits
mailing list