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/GSYM/FunctionInfo.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp') diff --git a/llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp b/llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp index 4f5d240cdf72..51058fc09cf1 100644 --- a/llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp +++ b/llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp @@ -12,6 +12,7 @@ #include "llvm/DebugInfo/GSYM/LineTable.h" #include "llvm/DebugInfo/GSYM/InlineInfo.h" #include "llvm/Support/DataExtractor.h" +#include using namespace llvm; using namespace gsym; @@ -178,8 +179,8 @@ llvm::Expected FunctionInfo::lookup(DataExtractor &Data, Offset - 4); LR.FuncName = GR.getString(NameOffset); bool Done = false; - Optional LineEntry; - Optional InlineInfoData; + std::optional LineEntry; + std::optional InlineInfoData; while (!Done) { if (!Data.isValidOffsetForDataOfSize(Offset, 8)) return createStringError(std::errc::io_error, @@ -226,7 +227,7 @@ llvm::Expected FunctionInfo::lookup(DataExtractor &Data, return LR; } - Optional LineEntryFile = GR.getFile(LineEntry->File); + std::optional LineEntryFile = GR.getFile(LineEntry->File); if (!LineEntryFile) return createStringError(std::errc::invalid_argument, "failed to extract file[%" PRIu32 "]", -- cgit v1.2.3