diff options
author | Mitch Phillips <31459023+hctim@users.noreply.github.com> | 2022-03-21 16:03:48 -0700 |
---|---|---|
committer | Mitch Phillips <31459023+hctim@users.noreply.github.com> | 2022-03-21 16:04:36 -0700 |
commit | 9c96a6bbfdde665b5c2389100a15acdeea0f4145 (patch) | |
tree | e8c955a3f3d24c36ffa2cbe3073fc5dd83cec1ab /llvm/lib/AsmParser/LLLexer.cpp | |
parent | a80c6c7d36d25999a28cfad32e1f461db95ba4dc (diff) | |
download | llvm-9c96a6bbfdde665b5c2389100a15acdeea0f4145.zip llvm-9c96a6bbfdde665b5c2389100a15acdeea0f4145.tar.gz llvm-9c96a6bbfdde665b5c2389100a15acdeea0f4145.tar.bz2 |
Revert "[OpaquePtr][LLParser] Automatically detect opaque pointers in .ll files"
This reverts commit 295172ef51c6b9a73bc0fdcfd25f8c41ead9034a.
Reason: Broke the ASan buildbot. More details are available on the
original Phab review at https://reviews.llvm.org/D119482.
Diffstat (limited to 'llvm/lib/AsmParser/LLLexer.cpp')
-rw-r--r-- | llvm/lib/AsmParser/LLLexer.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/AsmParser/LLLexer.cpp b/llvm/lib/AsmParser/LLLexer.cpp index 8aac5a6..6048066 100644 --- a/llvm/lib/AsmParser/LLLexer.cpp +++ b/llvm/lib/AsmParser/LLLexer.cpp @@ -860,10 +860,7 @@ lltok::Kind LLLexer::LexIdentifier() { TYPEKEYWORD("token", Type::getTokenTy(Context)); if (Keyword == "ptr") { - // enableOpaquePointers() must be called before creating any pointer types. - if (!Context.hasSetOpaquePointersValue()) { - Context.enableOpaquePointers(); - } else if (Context.supportsTypedPointers()) { + if (Context.supportsTypedPointers()) { Warning("ptr type is only supported in -opaque-pointers mode"); return lltok::Error; } |