From 3c09ed006ab35dd8faac03311b14f0857b01949c Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 4 Dec 2022 17:12:44 -0800 Subject: [llvm] Use std::nullopt instead of None in comments (NFC) This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716 --- llvm/lib/Object/MachOObjectFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Object/MachOObjectFile.cpp') diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp index 92491a0..39e84ff 100644 --- a/llvm/lib/Object/MachOObjectFile.cpp +++ b/llvm/lib/Object/MachOObjectFile.cpp @@ -4970,7 +4970,7 @@ MachOObjectFile::getChainedFixupsLoadCommand() const { *DyldChainedFixupsOrErr; // If the load command is present but the data offset has been zeroed out, - // as is the case for dylib stubs, return None (no error). + // as is the case for dylib stubs, return std::nullopt (no error). if (!DyldChainedFixups.dataoff) return std::nullopt; return DyldChainedFixups; -- cgit v1.1