From 75a77110873c0108b44ad2e1b236341bf0617f34 Mon Sep 17 00:00:00 2001 From: Alexander Penev <7923188+alexander-penev@users.noreply.github.com> Date: Tue, 30 Apr 2024 22:52:34 +0300 Subject: [PATCH] Update lib/Interpreter/Compatibility.h Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- lib/Interpreter/Compatibility.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Interpreter/Compatibility.h b/lib/Interpreter/Compatibility.h index 1935dad53..be7b55b65 100644 --- a/lib/Interpreter/Compatibility.h +++ b/lib/Interpreter/Compatibility.h @@ -284,7 +284,7 @@ inline llvm::Error Undo(clang::Interpreter& I, unsigned N = 1) { inline void codeComplete(clang::Interpreter& I, const char* code, std::vector& Results) { #if CLANG_VERSION_MAJOR >= 18 std::vector results; - auto *MainCI = I.getCompilerInstance(); + const auto *MainCI = I.getCompilerInstance(); auto CC = clang::ReplCodeCompleter(); CC.codeComplete(MainCI, code, /* Lines */ 1, std::string(code).size() + 1, MainCI, results); printf("!!!%s\n", CC.Prefix.c_str());