diff options
author | Amir Ayupov <aaupov@fb.com> | 2022-12-11 22:34:40 -0800 |
---|---|---|
committer | Amir Ayupov <aaupov@fb.com> | 2022-12-11 22:34:40 -0800 |
commit | 9cbd2959c156f50c1e44dabcf3d7de3461c5836a (patch) | |
tree | c5dd38100da67a0396df52d3136bf95b20d71d5b /bolt | |
parent | 1628daf6e744abd8d81f544bf9d53da81021b800 (diff) | |
download | llvm-9cbd2959c156f50c1e44dabcf3d7de3461c5836a.zip llvm-9cbd2959c156f50c1e44dabcf3d7de3461c5836a.tar.gz llvm-9cbd2959c156f50c1e44dabcf3d7de3461c5836a.tar.bz2 |
[BOLT] Fix broken unittests
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()); |