diff --git a/bolt/include/bolt/Passes/ReachingDefOrUse.h b/bolt/include/bolt/Passes/ReachingDefOrUse.h --- a/bolt/include/bolt/Passes/ReachingDefOrUse.h +++ b/bolt/include/bolt/Passes/ReachingDefOrUse.h @@ -11,7 +11,6 @@ #include "bolt/Passes/DataflowAnalysis.h" #include "bolt/Passes/RegAnalysis.h" -#include "llvm/ADT/Optional.h" #include "llvm/MC/MCRegisterInfo.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/Timer.h" @@ -34,7 +33,7 @@ public: ReachingDefOrUse(const RegAnalysis &RA, BinaryFunction &BF, - Optional TrackingReg = std::nullopt, + std::optional TrackingReg = std::nullopt, MCPlusBuilder::AllocatorIdTy AllocId = 0) : InstrsDataflowAnalysis, !Def>(BF, AllocId), RA(RA), TrackingReg(TrackingReg) {} @@ -65,7 +64,7 @@ /// If set, limit the dataflow to only track instructions affecting this /// register. Otherwise the analysis can be too permissive. - Optional TrackingReg; + std::optional TrackingReg; void preflight() { // Populate our universe of tracked expressions with all instructions