From 67819a72c6ba39267effe8edfc1befddc3f3f2f9 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 13 Dec 2022 09:06:36 +0000 Subject: [CodeGen] llvm::Optional => std::optional --- llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp') diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index dc09b52..1b2e7ad 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -1339,7 +1339,7 @@ void CodeViewDebug::calculateRanges( assert(DVInst->isDebugValue() && "Invalid History entry"); // FIXME: Find a way to represent constant variables, since they are // relatively common. - Optional Location = + std::optional Location = DbgVariableLocation::extractFromMachineInstruction(*DVInst); if (!Location) { -- cgit v1.1