summaryrefslogtreecommitdiff
path: root/polly
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-12-16 07:56:52 +0000
committerFangrui Song <i@maskray.me>2022-12-16 07:56:52 +0000
commit1da3a795fcf61a2c931d9320738db7d5c0444ce2 (patch)
tree75223589ac4a82fc6dd2d5ee1d9f365958021e2c /polly
parentf13d0c125f398745fe38506a6a0b2c9d5e36ec0c (diff)
downloadllvm-1da3a795fcf61a2c931d9320738db7d5c0444ce2.tar.gz
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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/Exchange/JSONExporter.cpp b/polly/lib/Exchange/JSONExporter.cpp
index 995af209035b..6eafa5b10f0c 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.");