aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/AsmParser/LLLexer.cpp
diff options
context:
space:
mode:
authorMitch Phillips <31459023+hctim@users.noreply.github.com>2022-03-21 16:03:48 -0700
committerMitch Phillips <31459023+hctim@users.noreply.github.com>2022-03-21 16:04:36 -0700
commit9c96a6bbfdde665b5c2389100a15acdeea0f4145 (patch)
treee8c955a3f3d24c36ffa2cbe3073fc5dd83cec1ab /llvm/lib/AsmParser/LLLexer.cpp
parenta80c6c7d36d25999a28cfad32e1f461db95ba4dc (diff)
downloadllvm-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.cpp5
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;
}