From e3b557809604d036af6e00c60f012c2025b59a5e Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 11 Feb 2023 13:38:04 +0100 Subject: Vendor import of llvm-project main llvmorg-16-init-18548-gb0daacf58f41, the last commit before the upstream release/17.x branch was created. --- llvm/lib/DebugInfo/DWARF/DWARFDebugAddr.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'llvm/lib/DebugInfo/DWARF/DWARFDebugAddr.cpp') diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugAddr.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugAddr.cpp index 81fac4763ec1..98eaf1a095d9 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDebugAddr.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugAddr.cpp @@ -177,9 +177,8 @@ Expected DWARFDebugAddrTable::getAddrEntry(uint32_t Index) const { Index, Offset); } -Optional DWARFDebugAddrTable::getFullLength() const { +std::optional DWARFDebugAddrTable::getFullLength() const { if (Length == 0) - return None; + return std::nullopt; return Length + dwarf::getUnitLengthFieldByteSize(Format); } - -- cgit v1.2.3