llvm-plugin-rs
llvm-plugin-rs copied to clipboard
Function passes are completely broken.
Description
Function passes do not work. Module passes work.
To Reproduce
I have reproduced this on a clean macOS 15 docker image. You can reproduce as follows:
- Open a macOS 15 docker image.
- Setup Rust/brew.
brew install llvm@18(I tried@17and@14too)- Copy-paste the hello world example code
panic!()in therun_passimplementation function- Notice that there is no panic
You can get a panic by putting it right before you register the pass; clearly it is registered since you will be allowed to --passes=hello-world.
Expected behavior
These steps should lead to panic
Screenshots
N/A
Environment
Whatever environment GitHub uses for their macos-15 runners. I tried LLVM 14, 17, and 18.