Skip to content

Commit ef76192

Browse files
committed
Don't omit () in lambda with explicit return type
1 parent 406357f commit ef76192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Serialization/ASTWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1895,7 +1895,7 @@ void ASTWriter::WriteInputFiles(SourceManager &SourceMgr) {
18951895
Entry.IsTopLevel = true;
18961896
Entry.IsModuleMap = false;
18971897
std::unique_ptr<MemoryBuffer> MB;
1898-
Entry.trySetContentHash(*PP, [&] -> std::optional<MemoryBufferRef> {
1898+
Entry.trySetContentHash(*PP, [&]() -> std::optional<MemoryBufferRef> {
18991899
if (auto MBOrErr = FM.getBufferForFile(Entry.File)) {
19001900
MB = std::move(*MBOrErr);
19011901
return MB->getMemBufferRef();

0 commit comments

Comments
 (0)