We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d78875 commit 467cbd2Copy full SHA for 467cbd2
clang-tools-extra/clangd/CodeComplete.cpp
@@ -1111,8 +1111,8 @@ bool semaCodeComplete(std::unique_ptr<CodeCompleteConsumer> Consumer,
1111
offsetToClangLineColumn(Input.ParseInput.Contents, Input.Offset);
1112
1113
std::unique_ptr<llvm::MemoryBuffer> ContentsBuffer =
1114
- llvm::MemoryBuffer::getMemBufferCopy(Input.ParseInput.Contents,
1115
- Input.FileName);
+ llvm::MemoryBuffer::getMemBuffer(Input.ParseInput.Contents,
+ Input.FileName);
1116
// The diagnostic options must be set before creating a CompilerInstance.
1117
CI->getDiagnosticOpts().IgnoreWarnings = true;
1118
// We reuse the preamble whether it's valid or not. This is a
0 commit comments