diff --git a/lib/Interpreter/IncrementalJIT.cpp b/lib/Interpreter/IncrementalJIT.cpp index ddd2acbe72..ad936d9316 100644 --- a/lib/Interpreter/IncrementalJIT.cpp +++ b/lib/Interpreter/IncrementalJIT.cpp @@ -349,7 +349,7 @@ static bool UseJITLink(const Triple& TT) { bool jitLink = false; // Default to JITLink on macOS and RISC-V, as done in (recent) LLVM by // LLJITBuilderState::prepareForConstruction. - if (TT.getArch() == Triple::riscv64 || + if (TT.getArch() == Triple::riscv64 || TT.getArch() == Triple::loongarch64 || (TT.isOSBinFormatMachO() && (TT.getArch() == Triple::aarch64 || TT.getArch() == Triple::x86_64)) || (TT.isOSBinFormatELF() &&