[PATCH] D125735: [OpaquePtr][LLParser] Explicitly turn off opaque pointers if we see a star

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 17 08:43:01 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd2be4f95494e: [OpaquePtr][LLParser] Explicitly turn off opaque pointers if we see a star (authored by aeubanks).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125735/new/

https://reviews.llvm.org/D125735

Files:
  llvm/lib/AsmParser/LLParser.cpp


Index: llvm/lib/AsmParser/LLParser.cpp
===================================================================
--- llvm/lib/AsmParser/LLParser.cpp
+++ llvm/lib/AsmParser/LLParser.cpp
@@ -66,6 +66,8 @@
     // explicit "ptr".
     if (K == lltok::star || K == lltok::Error || K == lltok::Eof ||
         isa_and_nonnull<PointerType>(L.getTyVal())) {
+      if (K == lltok::star)
+        C.setOpaquePointers(false);
       return;
     }
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125735.430081.patch
Type: text/x-patch
Size: 438 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220517/d11864fd/attachment.bin>


More information about the llvm-commits mailing list