diff options
author | Fangrui Song <i@maskray.me> | 2022-12-12 08:29:05 +0000 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-12-12 08:29:05 +0000 |
commit | c178ed33bd82151f21abc3c0015c671b33556999 (patch) | |
tree | 49ff57aa48c95a6edf0c97e1084a998205f4faf4 /llvm/lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | a73455ac8e9bd02f843916c12c261cfd9ccb06a9 (diff) | |
download | llvm-c178ed33bd82151f21abc3c0015c671b33556999.zip llvm-c178ed33bd82151f21abc3c0015c671b33556999.tar.gz llvm-c178ed33bd82151f21abc3c0015c671b33556999.tar.bz2 |
Transforms/Utils: llvm::Optional => std::optional
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index fecf2b1..a9b8830 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -3139,7 +3139,7 @@ static ConstantInt *getKnownValueOnEdge(Value *V, BasicBlock *From, /// If we have a conditional branch on something for which we know the constant /// value in predecessors (e.g. a phi node in the current block), thread edges /// from the predecessor to their ultimate destination. -static Optional<bool> +static std::optional<bool> FoldCondBranchOnValueKnownInPredecessorImpl(BranchInst *BI, DomTreeUpdater *DTU, const DataLayout &DL, AssumptionCache *AC) { @@ -3283,7 +3283,7 @@ static bool FoldCondBranchOnValueKnownInPredecessor(BranchInst *BI, DomTreeUpdater *DTU, const DataLayout &DL, AssumptionCache *AC) { - Optional<bool> Result; + std::optional<bool> Result; bool EverChanged = false; do { // Note that None means "we changed things, but recurse further." |