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 406357f commit ef76192Copy full SHA for ef76192
clang/lib/Serialization/ASTWriter.cpp
@@ -1895,7 +1895,7 @@ void ASTWriter::WriteInputFiles(SourceManager &SourceMgr) {
1895
Entry.IsTopLevel = true;
1896
Entry.IsModuleMap = false;
1897
std::unique_ptr<MemoryBuffer> MB;
1898
- Entry.trySetContentHash(*PP, [&] -> std::optional<MemoryBufferRef> {
+ Entry.trySetContentHash(*PP, [&]() -> std::optional<MemoryBufferRef> {
1899
if (auto MBOrErr = FM.getBufferForFile(Entry.File)) {
1900
MB = std::move(*MBOrErr);
1901
return MB->getMemBufferRef();
0 commit comments