diff --git a/llvm/lib/CodeGen/AsmPrinter/DbgEntityHistoryCalculator.cpp b/llvm/lib/CodeGen/AsmPrinter/DbgEntityHistoryCalculator.cpp index dabbfb45f687c..d0c3e5e228a7c 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DbgEntityHistoryCalculator.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DbgEntityHistoryCalculator.cpp @@ -26,6 +26,7 @@ #include "llvm/Support/raw_ostream.h" #include #include +#include #include using namespace llvm; @@ -110,7 +111,7 @@ void DbgValueHistoryMap::Entry::endEntry(EntryIndex Index) { /// range in Ranges. EndMI can be nullptr to indicate that the range is /// unbounded. Assumes Ranges is ordered and disjoint. Returns true and points /// to the first intersecting scope range if one exists. -static Optional::iterator> +static std::optional::iterator> intersects(const MachineInstr *StartMI, const MachineInstr *EndMI, const ArrayRef &Ranges, const InstructionOrdering &Ordering) {