Skip to content

Commit 725a1b0

Browse files
Merge pull request swiftlang#38936 from aschwaighofer/disable_global_isel_abort
Disable GlobalISelAbort
2 parents 08fbc64 + bf7d910 commit 725a1b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/IRGen/IRGen.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,10 @@ swift::getIRTargetOptions(const IRGenOptions &Opts, ASTContext &Ctx) {
175175
if (Clang->getTargetInfo().getTriple().isOSBinFormatWasm())
176176
TargetOpts.ThreadModel = llvm::ThreadModel::Single;
177177

178-
if (Opts.EnableGlobalISel)
178+
if (Opts.EnableGlobalISel) {
179179
TargetOpts.EnableGlobalISel = true;
180+
TargetOpts.GlobalISelAbort = GlobalISelAbortMode::DisableWithDiag;
181+
}
180182

181183
clang::TargetOptions &ClangOpts = Clang->getTargetInfo().getTargetOpts();
182184
return std::make_tuple(TargetOpts, ClangOpts.CPU, ClangOpts.Features, ClangOpts.Triple);

0 commit comments

Comments
 (0)