Skip to content

Commit 0f45e45

Browse files
authored
Ensure lli --force-interpreter disables the OrcJIT too (#73717)
Unless the OrcJIT was explicitly disabled it would be used by lli even if the --force-interpreter flag was passed.
1 parent 86bde5a commit 0f45e45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/lli/lli.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ int main(int argc, char **argv, char * const *envp) {
453453
exit(1);
454454
}
455455

456-
if (UseJITKind == JITKind::MCJIT)
456+
if (UseJITKind == JITKind::MCJIT || ForceInterpreter)
457457
disallowOrcOptions();
458458
else
459459
return runOrcJIT(argv[0]);

0 commit comments

Comments
 (0)