<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/99428>99428</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llc can compile a faulty IR
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
pzzp
</td>
</tr>
</table>
<pre>
```
define void @f() local_unnamed_addr #0 {
call void @g(i32 0)
ret void
}
define void @g() local_unnamed_addr #4 {
ret void
}
```
This IR can be compiled successfully, no error reporting.
llc version:

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8UkFv3CwQ_TXjC_KKHeM1HDh8-VYr5Rr1HmEY21TYWIC3Sn595d1tmkptJCQGhvfe8GZMzn5ciDS0T9CeK7OVKSa9vr-vVR_dm4YTfyx-Bv6fo8EvxK7ROwaCD4ASULEQrQmv27KYmdyrcS4xwIYz6J7uOMasCeEDNwJK3yDjgOrXg0Tllr-foTs_gr_pjl_qis-6_6L981_fJp_Z8wuzZmE9MRvn1QdyLG_WUs7DFsIb4P9siYxSioklWmMqfhkPn8sMwbIrpezjAs3jDvAI7ZOfzUjQngHlVMqa9zReAC-jL9PWH2ycAS9bplSbUoydZlpKBryYnOkWnLjExpmh7h1SLaR0tenbtiY5mHZQ7tgq-WFn5XTjVKNMRfrY4RG79tSJatLDSRmlhEMSrSPOnW16q9DxznWuo6HyGjkK3h0lF7xrxeFkTS97UqLDQVlpQHCajQ-HEK7zIaax8jlvpJUSKKtgegr5Nk6IC_1gtyQg7tOV9I6p-23MIHjwueTfLMWXQHp3cG_CowPMsMFsobyx55dqS0F_Yd7O9NjqNcXvZAvg5aa_-3ev76rxZwAAAP__9i7jAw">