aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-12-03 12:14:21 -0800
committerKazu Hirata <kazu@google.com>2022-12-03 12:14:21 -0800
commit9a41739565d9f7ce94da5e7d83947ead73d9bd54 (patch)
treeb5e1f1bae1a591a5ff1d300156aa282a69a3bc8a /flang/lib/Frontend/CompilerInvocation.cpp
parenta41fbb1fc2126e9791fd0f159f21935f6c2f93c4 (diff)
downloadllvm-9a41739565d9f7ce94da5e7d83947ead73d9bd54.zip
llvm-9a41739565d9f7ce94da5e7d83947ead73d9bd54.tar.gz
llvm-9a41739565d9f7ce94da5e7d83947ead73d9bd54.tar.bz2
[flang] Use std::nullopt instead of None (NFC)
This patch mechanically replaces None with std::nullopt where the compiler would warn if None were deprecated. The intent is to reduce the amount of manual work required in migrating from Optional to std::optional. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--flang/lib/Frontend/CompilerInvocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp
index e24d816..e5fa38e 100644
--- a/flang/lib/Frontend/CompilerInvocation.cpp
+++ b/flang/lib/Frontend/CompilerInvocation.cpp
@@ -139,7 +139,7 @@ static void parseCodeGenArgs(Fortran::frontend::CodeGenOptions &opts,
.Case("ropi", llvm::Reloc::ROPI)
.Case("rwpi", llvm::Reloc::RWPI)
.Case("ropi-rwpi", llvm::Reloc::ROPI_RWPI)
- .Default(llvm::None);
+ .Default(std::nullopt);
if (RM.has_value())
opts.setRelocationModel(*RM);
else