Skip to content

Commit f1b5d30

Browse files
committed
[JITLink] Fix typo in block address in unittest.
The address isn't currently used in this test but overlaps with Block B1, which is a dubious state for a LinkGraph to be in.
1 parent 6494920 commit f1b5d30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/unittests/ExecutionEngine/JITLink/LinkGraphTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ TEST(LinkGraphTest, BlockAndSymbolIteration) {
9595
auto &Sec1 = G.createSection("__data.1", MemProt::Read | MemProt::Write);
9696
orc::ExecutorAddr B1Addr(0x1000);
9797
auto &B1 = G.createContentBlock(Sec1, BlockContent, B1Addr, 8, 0);
98-
orc::ExecutorAddr B2Addr(0x1000);
98+
orc::ExecutorAddr B2Addr(0x2000);
9999
auto &B2 = G.createContentBlock(Sec1, BlockContent, B2Addr, 8, 0);
100100
auto &S1 = G.addDefinedSymbol(B1, 0, "S1", 4, Linkage::Strong, Scope::Default,
101101
false, false);

0 commit comments

Comments
 (0)