serge-sans-paille added a comment.

@Alouest thanks for the reproducer. I confirm your issue, and also confirm that 
if you pass `-fexperimental-new-pass-manager -O1` to clang (i.e. use the new 
pass manager) it works fine. As far as I can tell, the segfault happens because 
`RegisterPass` also register the pass to the FunctionPassManager. Can you 
confirm it's orthogonal to that patch, i.e. it's a legacy PM issue ?

Basically runModule is called with a Function as first parameter and it's 
obviously a bad idea.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61446/new/

https://reviews.llvm.org/D61446



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to