Skip to content

Commit bf7d910

Browse files
committed
Disable GlobalISelAbort
When using GlobalISel instead of SelectionDAG lowering allow for fall-back to SelectionDAG instead of aborting.
1 parent 79b33ef commit bf7d910

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)