OpaquePtr: Reject 'ptr*' again when parsing textual IR
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 25 Jun 2021 18:53:27 +0000 (11:53 -0700)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 25 Jun 2021 22:18:44 +0000 (15:18 -0700)
commit4506f614cb6983a16d117cf77a968608e66d7a5c
tree83902c8ff53a90a2895215f31cc2c0fdd591d22f
parent557b101ce714e39438ba1d39c4c50b03e12fcb96
OpaquePtr: Reject 'ptr*' again when parsing textual IR

Bring back the testcase dropped in
1e6303e60ca5af4fbe7ca728572fd65666a98271 and get it passing by checking
explicitly for `ptr*` in LLParser. Uses `Type::isOpaquePointerTy()` from
ad4bb8280952c2cacf497e30560ee94c119b36e0.

Differential Revision: https://reviews.llvm.org/D104938
llvm/lib/AsmParser/LLParser.cpp
llvm/test/Assembler/invalid-opaque-ptr-addrspace.ll [new file with mode: 0644]
llvm/test/Assembler/invalid-opaque-ptr.ll [new file with mode: 0644]