diff options
Diffstat (limited to 'llvm/lib/AsmParser/Parser.cpp')
-rw-r--r-- | llvm/lib/AsmParser/Parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/Parser.cpp b/llvm/lib/AsmParser/Parser.cpp index 4458ae7..5df7789 100644 --- a/llvm/lib/AsmParser/Parser.cpp +++ b/llvm/lib/AsmParser/Parser.cpp @@ -93,7 +93,7 @@ ParsedModuleAndIndex llvm::parseAssemblyWithIndex(MemoryBufferRef F, SlotMapping *Slots) { return ::parseAssemblyWithIndex(F, Err, Context, Slots, /*UpgradeDebugInfo*/ true, - [](StringRef) { return None; }); + [](StringRef) { return std::nullopt; }); } static ParsedModuleAndIndex @@ -150,7 +150,7 @@ static bool parseSummaryIndexAssemblyInto(MemoryBufferRef F, // index, but we need to initialize it. LLVMContext unusedContext; return LLParser(F.getBuffer(), SM, Err, nullptr, &Index, unusedContext) - .Run(true, [](StringRef) { return None; }); + .Run(true, [](StringRef) { return std::nullopt; }); } std::unique_ptr<ModuleSummaryIndex> |