diff options
-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; |