Skip to content

Commit 2fc90af

Browse files
committed
[lldb] Fix build after 2da8f30
1 parent 23b5f92 commit 2fc90af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,13 +1077,14 @@ ClangExpressionParser::ParseInternal(DiagnosticManager &diagnostic_manager,
10771077
// While parsing the Sema will call this consumer with the provided
10781078
// completion suggestions.
10791079
if (completion_consumer) {
1080-
auto main_file = source_mgr.getFileEntryForID(source_mgr.getMainFileID());
1080+
auto main_file =
1081+
source_mgr.getFileEntryRefForID(source_mgr.getMainFileID());
10811082
auto &PP = m_compiler->getPreprocessor();
10821083
// Lines and columns start at 1 in Clang, but code completion positions are
10831084
// indexed from 0, so we need to add 1 to the line and column here.
10841085
++completion_line;
10851086
++completion_column;
1086-
PP.SetCodeCompletionPoint(main_file, completion_line, completion_column);
1087+
PP.SetCodeCompletionPoint(*main_file, completion_line, completion_column);
10871088
}
10881089

10891090
ASTConsumer *ast_transformer =

0 commit comments

Comments
 (0)