Revert "[OpaquePointers][BitcodeReader] Enable -opaque-pointers if we see an opaque pointer type"

This reverts commit 46216aa977.

Dependency https://reviews.llvm.org/D119482 broke the ASan buildbot.
This commit is contained in:
Mitch Phillips
2022-03-21 16:17:11 -07:00
parent 9c96a6bbfd
commit 80ec0ebfdc
2 changed files with 1 additions and 4 deletions

View File

@@ -1883,9 +1883,7 @@ Error BitcodeReader::parseTypeTableBody() {
case bitc::TYPE_CODE_OPAQUE_POINTER: { // OPAQUE_POINTER: [addrspace]
if (Record.size() != 1)
return error("Invalid opaque pointer record");
if (LLVM_UNLIKELY(!Context.hasSetOpaquePointersValue())) {
Context.enableOpaquePointers();
} else if (Context.supportsTypedPointers())
if (Context.supportsTypedPointers())
return error(
"Opaque pointers are only supported in -opaque-pointers mode");
unsigned AddressSpace = Record[0];