<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56788>56788</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llc/clang 15.x not accepting certain opaque pointers code by default
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
jmaebe
</td>
</tr>
</table>
<pre>
I have no idea what is so special about the construct in the attached file, but clang/llc (built from the 15.x branch, d77882e66779f) give the following warning/error when trying to compile it:
```
objcrtl/units/x86_64-darwin/objcrtliphoneos.ll:15:19: warning: ptr type is only supported in -opaque-pointers mode
%reg.1_16 = load ptr, ptr @"\01_TC_$OBJCRTL_$$_DEFAULTOBJCLIBNAME", align 8, !dbg !8
^
objcrtl/units/x86_64-darwin/objcrtliphoneos.ll:15:19: error: expected type
%reg.1_16 = load ptr, ptr @"\01_TC_$OBJCRTL_$$_DEFAULTOBJCLIBNAME", align 8, !dbg !8
```
It does indeed compile correctly with -opaque-pointers, which is weird because that's the default now and a ton of other code I generate with opaque pointers in it is compiling fine without that parameter.
[objcrtliphoneos.txt](https://github.com/llvm/llvm-project/files/9213991/objcrtliphoneos.txt)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzNVE1v5CgQ_TX4UkrLxu2vgw9JOpGyyu5Kq-y5hU3ZJqLBC3g6_e-3oJMZTWYuI-1hLcSHKeoVr14xWHnpn2ARXxCMBSVRwHkRAZQHb8GvOCqhQQx2CxAWhNEaH9w2koVJP0QIYlxQwqQ0Mn4PA1mOWpiZ8UetR2C8HTalA0zOntKRotq9weCEGZd4QDZN23Ks66bpJsY7mBVFEw0nq7U9KzPDWTijkkt0zjqKEQneXeJesBTVaSV4UIGVtyw_sPyjr_P3lpZ2eB1d0ORmMyp4Gt_a-ljvb6RwhEPrdwu1Ltag9TutyWNRxa6j7msgNF2Dg3BZMXJljb6A39bVukBcEDc3dhX_bHizWmUCOg8nK_EaBbx_jFcO511xLGpg5QG0FTJ6jaRE52yfM85ZdZ8Xx5f7I-P7P-9-u__r5TlOqR0PD4-3fz-_xL_PT3d_3P7-EO3ptNBqNtDGKeOFHOY4tN-j__Cx6uG_YiklKU3eSEGRkUjU_-H2nwTxFEBa9JQwiRTlh45G6xzFTTk9q7D8kMvo-byocYmpP6NyEgYcxeajbEVgvPFJvxInsZHyjT2DMBIEadWAncDSriMUifAEMxp0IuAV6woFX2VDUlKpHK-xRcFPylyNr0VJ1boKJ05I9rvvxF_dfU5UeAusOlBJLiGsPhYLf6Q2k7Nt2BFEKtovH8PN6uwrEUHLWN5RCh0vyq4rfiKC6Jt3V-gM-6KuunyfF3Weyb6UXdmJLKigsadXgY6nN-L6FhgbQIwjriFeb0QXBF37MxOJruHywWq2Od3_8jWU91u6R1XTq5MtvawqzvdtIatyynMuy6HiQ9d0ZcO7suZTpsWA2vdEJsnL4BmSiyTNQ6Z6nnOeN7ylsSu6He6bko7Vsq15W48DqRhPQuldjGNn3Zy5PoU0bLOnTa188N82hfekXcQER_7FRll2_etJ4IBZQu5T5P8CD9rLfg">