mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 17:56:50 +00:00
[BOLT] Fix broken unittests
This commit is contained in:
parent
1628daf6e7
commit
9cbd2959c1
@ -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);
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user