From 8c7c20f033c7036a8bf231ca6f9e02172cb581f0 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Sat, 3 Dec 2022 11:06:12 -0600 Subject: Convert Optional to std::optional --- llvm/lib/IR/Module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/IR/Module.cpp') diff --git a/llvm/lib/IR/Module.cpp b/llvm/lib/IR/Module.cpp index a9e80b3d..1f2f86f 100644 --- a/llvm/lib/IR/Module.cpp +++ b/llvm/lib/IR/Module.cpp @@ -616,7 +616,7 @@ void Module::setPIELevel(PIELevel::Level PL) { addModuleFlag(ModFlagBehavior::Max, "PIE Level", PL); } -Optional Module::getCodeModel() const { +std::optional Module::getCodeModel() const { auto *Val = cast_or_null(getModuleFlag("Code Model")); if (!Val) -- cgit v1.1