diff options
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 198fe33..0b6c509 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -80,6 +80,7 @@ #include <deque> #include <map> #include <memory> +#include <optional> #include <set> #include <string> #include <system_error> @@ -593,7 +594,7 @@ class BitcodeReader : public BitcodeReaderBase, public GVMaterializer { /// ValueList must be destroyed before Alloc. BumpPtrAllocator Alloc; BitcodeReaderValueList ValueList; - Optional<MetadataLoader> MDLoader; + std::optional<MetadataLoader> MDLoader; std::vector<Comdat *> ComdatList; DenseSet<GlobalObject *> ImplicitComdatObjects; SmallVector<Instruction *, 64> InstructionList; @@ -3205,7 +3206,7 @@ Error BitcodeReader::parseConstants() { PointeeType = getTypeByID(Record[OpNum++]); bool InBounds = false; - Optional<unsigned> InRangeIndex; + std::optional<unsigned> InRangeIndex; if (BitCode == bitc::CST_CODE_CE_GEP_WITH_INRANGE_INDEX) { uint64_t Op = Record[OpNum++]; InBounds = Op & 1; |