aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-12-12 08:29:05 +0000
committerFangrui Song <i@maskray.me>2022-12-12 08:29:05 +0000
commitc178ed33bd82151f21abc3c0015c671b33556999 (patch)
tree49ff57aa48c95a6edf0c97e1084a998205f4faf4 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
parenta73455ac8e9bd02f843916c12c261cfd9ccb06a9 (diff)
downloadllvm-c178ed33bd82151f21abc3c0015c671b33556999.zip
llvm-c178ed33bd82151f21abc3c0015c671b33556999.tar.gz
llvm-c178ed33bd82151f21abc3c0015c671b33556999.tar.bz2
Transforms/Utils: llvm::Optional => std::optional
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/BasicBlockUtils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
index 9876681..871d742 100644
--- a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
+++ b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
@@ -1903,7 +1903,7 @@ convertToGuardPredicates(SmallVectorImpl<BasicBlock *> &GuardBlocks,
SmallVectorImpl<WeakVH> &DeletionCandidates,
const BBSetVector &Incoming,
const BBSetVector &Outgoing, const StringRef Prefix,
- Optional<unsigned> MaxControlFlowBooleans) {
+ std::optional<unsigned> MaxControlFlowBooleans) {
BBPredicates GuardPredicates;
auto F = Incoming.front()->getParent();
@@ -1928,7 +1928,7 @@ convertToGuardPredicates(SmallVectorImpl<BasicBlock *> &GuardBlocks,
BasicBlock *llvm::CreateControlFlowHub(
DomTreeUpdater *DTU, SmallVectorImpl<BasicBlock *> &GuardBlocks,
const BBSetVector &Incoming, const BBSetVector &Outgoing,
- const StringRef Prefix, Optional<unsigned> MaxControlFlowBooleans) {
+ const StringRef Prefix, std::optional<unsigned> MaxControlFlowBooleans) {
if (Outgoing.size() < 2)
return Outgoing.front();