[PATCH] D130856: [NFC][DirectX backend] Fix crash when emit_obj for DirectX backend. When emit-obj from clang directly, DirectX backend will hit assert caused by not initialize passes for AsmPrinter.
Chris Bieneman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 1 09:19:16 PDT 2022
beanz added a comment.
Okay, digging into this more. The issue with GCModuleInfoPass looks like a 12-ish year old bug where it was left off the list of passes initialized in InitializeCodeGen, the MachineOptimizationRemarkEmitterPass is handled there, so as long as clang is properly initializing LLVM CodeGen all you should need to do is add `initializeGCModuleInfoPass` to `llvm::initializeCodeGen`.
@bogner, does that seem right to you?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130856/new/
https://reviews.llvm.org/D130856
More information about the llvm-commits
mailing list