From 0ea3386d7b6402ca8ad81abae70e3b1070e6d717 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 27 Nov 2022 14:40:10 -0800 Subject: [PATCH] [IR] Use std::optional in Statepoint.h (NFC) 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 --- llvm/include/llvm/IR/Statepoint.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/IR/Statepoint.h b/llvm/include/llvm/IR/Statepoint.h index 559840a..8b6ffd2 100644 --- a/llvm/include/llvm/IR/Statepoint.h +++ b/llvm/include/llvm/IR/Statepoint.h @@ -30,6 +30,7 @@ #include #include #include +#include #include namespace llvm { @@ -233,8 +234,8 @@ std::vector GCStatepointInst::getGCRelocates() const { /// have attributes that describe properties of gc.statepoint call they will be /// eventually be wrapped in. This struct is used represent such directives. struct StatepointDirectives { - Optional NumPatchBytes; - Optional StatepointID; + std::optional NumPatchBytes; + std::optional StatepointID; static const uint64_t DefaultStatepointID = 0xABCDEF00; static const uint64_t DeoptBundleStatepointID = 0xABCDEF0F; -- 2.7.4