| Issue |
170152
|
| Summary |
[MLIR][LLVMIR] Issue when importing LLVM modules which contain LandingPad clauses
|
| Labels |
mlir
|
| Assignees |
|
| Reporter |
frabert
|
LandingPad operations of the form
```
%0 = landingpad { ptr, i32 }
cleanup
filter [0 x ptr] zeroinitializer
```
would get imported into something like
```
%1 = llvm.mlir.undef : !llvm.array<0 x ptr> // Undef is not constant
[...]
^bb2: // pred: ^bb0
%6 = llvm.landingpad cleanup (filter %1 : !llvm.array<0 x ptr>) : !llvm.struct<(ptr, i32)>
```
which would fail validation when exporting back to LLVM. We have a fix in our fork here https://github.com/trailofbits/instafix-llvm/pull/83/commits/c0c895c8c477ed50aace036bdd3eeefe918282a3
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs