Skip to content

Commit

Permalink
Ensure lli --force-interpreter disables the OrcJIT too (#73717)
Browse files Browse the repository at this point in the history
Unless the OrcJIT was explicitly disabled it would be used by lli even
if the --force-interpreter flag was passed.
  • Loading branch information
allight authored Dec 5, 2023
1 parent 86bde5a commit 0f45e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/tools/lli/lli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ int main(int argc, char **argv, char * const *envp) {
exit(1);
}

if (UseJITKind == JITKind::MCJIT)
if (UseJITKind == JITKind::MCJIT || ForceInterpreter)
disallowOrcOptions();
else
return runOrcJIT(argv[0]);
Expand Down

0 comments on commit 0f45e45

Please sign in to comment.