Issue 64660
Summary Constant struct initialization is not checked at module verification
Labels new issue
Assignees
Reporter mauro-balades
    Let's take a look at this code:

```llvm
%"examplety" = type { ptr }
@"example" = internal global %"examplety" { ptr @"example1", ptr @"example2" }
```

This code will be considered as "valid" by the module verifier although it's obviously not. Instead of throwing an error, it will just abort with the following message when emitting an object file with `addPassesToEmitFile`:

```
error: <unknown>:0: invalid number of bytes
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to