diff options
Diffstat (limited to 'bolt')
-rw-r--r-- | bolt/unittests/Core/BinaryContext.cpp | 2 | ||||
-rw-r--r-- | bolt/unittests/Profile/DataAggregator.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bolt/unittests/Core/BinaryContext.cpp b/bolt/unittests/Core/BinaryContext.cpp index 3620163..bac2641 100644 --- a/bolt/unittests/Core/BinaryContext.cpp +++ b/bolt/unittests/Core/BinaryContext.cpp @@ -75,7 +75,7 @@ TEST_P(BinaryContextTester, BaseAddress) { BC->SegmentMapInfo[0x4b84d5e8] = SegmentInfo{0x4b84d5e8, 0x294f830, 0x4b84a5e8, 0x3d3820, 0x1000}; - Optional<uint64_t> BaseAddress = + std::optional<uint64_t> BaseAddress = BC->getBaseAddressForMapping(0x7f13f5556000, 0x10e8c000); ASSERT_TRUE(BaseAddress.has_value()); ASSERT_EQ(*BaseAddress, 0x7f13e46c9000ULL); diff --git a/bolt/unittests/Profile/DataAggregator.cpp b/bolt/unittests/Profile/DataAggregator.cpp index 8d13fbd..a27dd82 100644 --- a/bolt/unittests/Profile/DataAggregator.cpp +++ b/bolt/unittests/Profile/DataAggregator.cpp @@ -22,7 +22,7 @@ TEST(DataAggregatorTest, buildID) { opts::ReadPreAggregated = true; DataAggregator DA("<pseudo input>"); - Optional<StringRef> FileName; + std::optional<StringRef> FileName; DA.setParsingBuffer(""); ASSERT_FALSE(DA.hasAllBuildIDs()); |