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 @17 and @14 too)
- Copy-paste the hello world example code
panic!() in the run_pass implementation 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.
Additional context
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:
brew install llvm@18(I tried@17and@14too)panic!()in therun_passimplementation functionYou 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-15runners. I tried LLVM 14, 17, and 18.Additional context