From 7a47ee51a145a40332311330ef45b5d62d8ae023 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 20 Jun 2022 22:45:45 -0700 Subject: [llvm] Don't use Optional::getValue (NFC) --- llvm/lib/LTO/LTO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/LTO/LTO.cpp') diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index b9c1cf9..8d1570f 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -643,7 +643,7 @@ Error LTO::addModule(InputFile &Input, unsigned ModI, // If only some modules were split, flag this in the index so that // we can skip or error on optimizations that need consistently split // modules (whole program devirt and lower type tests). - if (EnableSplitLTOUnit.getValue() != LTOInfo->EnableSplitLTOUnit) + if (*EnableSplitLTOUnit != LTOInfo->EnableSplitLTOUnit) ThinLTO.CombinedIndex.setPartiallySplitLTOUnits(); } else EnableSplitLTOUnit = LTOInfo->EnableSplitLTOUnit; -- cgit v1.1