<div dir="ltr">Currently, you're allowed to form a constant of aggregate type using any number of other constants you like. This makes scanning the instructions of the IR needlessly complex when looking for references to constants.<div>
<br></div><div>There is no need to support this degree of complexity in the IR. We could require that for anything but 'zeroinitializer' you cannot write a constant of aggregate (structure or array) type. You have to build it using insertvalue.</div>
<div><br></div><div>Thoughts? This would simplify several things I'm working on currently, and it is a super easy auto-upgrade and verifier addition.</div><div><br></div><div>-Chandler</div></div>