[Lldb-commits] [lldb] 2fc90af - [lldb] Fix build after 2da8f30c
Jan Svoboda via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 29 10:01:44 PDT 2023
Author: Jan Svoboda
Date: 2023-09-29T10:01:37-07:00
New Revision: 2fc90afdac451b49d67c72bd41a99886811dd36c
URL: https://github.com/llvm/llvm-project/commit/2fc90afdac451b49d67c72bd41a99886811dd36c
DIFF: https://github.com/llvm/llvm-project/commit/2fc90afdac451b49d67c72bd41a99886811dd36c.diff
LOG: [lldb] Fix build after 2da8f30c
Added:
Modified:
lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
index f65192a3225edc1..aee0f1f56ec74b5 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
@@ -1077,13 +1077,14 @@ ClangExpressionParser::ParseInternal(DiagnosticManager &diagnostic_manager,
// While parsing the Sema will call this consumer with the provided
// completion suggestions.
if (completion_consumer) {
- auto main_file = source_mgr.getFileEntryForID(source_mgr.getMainFileID());
+ auto main_file =
+ source_mgr.getFileEntryRefForID(source_mgr.getMainFileID());
auto &PP = m_compiler->getPreprocessor();
// Lines and columns start at 1 in Clang, but code completion positions are
// indexed from 0, so we need to add 1 to the line and column here.
++completion_line;
++completion_column;
- PP.SetCodeCompletionPoint(main_file, completion_line, completion_column);
+ PP.SetCodeCompletionPoint(*main_file, completion_line, completion_column);
}
ASTConsumer *ast_transformer =
More information about the lldb-commits
mailing list