================ @@ -466,6 +466,7 @@ static bool initTargetOptions(const CompilerInstance &CI, Options.Hotpatch = CodeGenOpts.HotPatch; Options.JMCInstrument = CodeGenOpts.JMCInstrument; Options.XCOFFReadOnlyPointers = CodeGenOpts.XCOFFReadOnlyPointers; + Options.TrapUnreachable = CodeGenOpts.TrapUnreachable; ---------------- nikic wrote:
Should we also enable NoTrapAfterNoreturn? (Alternatively we could have multiple modes like `-ftrap-unreachable=all` and `-ftrap-unreachable=except-noreturn` or so.) https://github.com/llvm/llvm-project/pull/174894 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
