diff options
author | Kazu Hirata <kazu@google.com> | 2022-11-25 12:03:40 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-11-25 12:03:40 -0800 |
commit | 171b749dc130bd01ab5c716417c120918c4e6372 (patch) | |
tree | e95b28ef26628ba68a3be2cee9e2900b371619aa /llvm/lib | |
parent | f4db9168efab39adf950719934d5184cd22fda5b (diff) | |
download | llvm-171b749dc130bd01ab5c716417c120918c4e6372.zip llvm-171b749dc130bd01ab5c716417c120918c4e6372.tar.gz llvm-171b749dc130bd01ab5c716417c120918c4e6372.tar.bz2 |
[IR] Use std::optional in IntrinsicInst.cpp (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
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/IR/IntrinsicInst.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/IR/IntrinsicInst.cpp b/llvm/lib/IR/IntrinsicInst.cpp index f91b148..2cdebae 100644 --- a/llvm/lib/IR/IntrinsicInst.cpp +++ b/llvm/lib/IR/IntrinsicInst.cpp @@ -29,6 +29,7 @@ #include "llvm/IR/Operator.h" #include "llvm/IR/PatternMatch.h" #include "llvm/IR/Statepoint.h" +#include <optional> using namespace llvm; @@ -682,7 +683,7 @@ static ICmpInst::Predicate getIntPredicateFromMD(const Value *Op) { CmpInst::Predicate VPCmpIntrinsic::getPredicate() const { bool IsFP = true; - Optional<unsigned> CCArgIdx; + std::optional<unsigned> CCArgIdx; switch (getIntrinsicID()) { default: break; |