diff options
author | Fangrui Song <i@maskray.me> | 2022-12-16 07:56:52 +0000 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-12-16 07:56:52 +0000 |
commit | 1da3a795fcf61a2c931d9320738db7d5c0444ce2 (patch) | |
tree | 75223589ac4a82fc6dd2d5ee1d9f365958021e2c /polly | |
parent | f13d0c125f398745fe38506a6a0b2c9d5e36ec0c (diff) | |
download | llvm-1da3a795fcf61a2c931d9320738db7d5c0444ce2.zip llvm-1da3a795fcf61a2c931d9320738db7d5c0444ce2.tar.gz llvm-1da3a795fcf61a2c931d9320738db7d5c0444ce2.tar.bz2 |
JSON: llvm::Optional => std::optional
Many files are from language servers.
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
Diffstat (limited to 'polly')
-rw-r--r-- | polly/lib/Exchange/JSONExporter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/Exchange/JSONExporter.cpp b/polly/lib/Exchange/JSONExporter.cpp index 995af20..6eafa5b 100644 --- a/polly/lib/Exchange/JSONExporter.cpp +++ b/polly/lib/Exchange/JSONExporter.cpp @@ -288,7 +288,7 @@ static bool importSchedule(Scop &S, const json::Object &JScop, errs() << "Statement " << Index << " has no 'schedule' key.\n"; return false; } - Optional<StringRef> Schedule = + std::optional<StringRef> Schedule = statements[Index].getAsObject()->getString("schedule"); assert(Schedule.has_value() && "Schedules that contain extension nodes require special handling."); |