[llvm] f1b5d30 - [JITLink] Fix typo in block address in unittest.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 17 16:00:08 PDT 2022


Author: Lang Hames
Date: 2022-08-17T15:55:43-07:00
New Revision: f1b5d30f152e4502e3d201ed7eca3f28204e1d36

URL: https://github.com/llvm/llvm-project/commit/f1b5d30f152e4502e3d201ed7eca3f28204e1d36
DIFF: https://github.com/llvm/llvm-project/commit/f1b5d30f152e4502e3d201ed7eca3f28204e1d36.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/unittests/ExecutionEngine/JITLink/LinkGraphTests.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/ExecutionEngine/JITLink/LinkGraphTests.cpp b/llvm/unittests/ExecutionEngine/JITLink/LinkGraphTests.cpp
index fdc6fbdff19be..ca75fa4eded70 100644
--- a/llvm/unittests/ExecutionEngine/JITLink/LinkGraphTests.cpp
+++ b/llvm/unittests/ExecutionEngine/JITLink/LinkGraphTests.cpp
@@ -95,7 +95,7 @@ TEST(LinkGraphTest, BlockAndSymbolIteration) {
   auto &Sec1 = G.createSection("__data.1", MemProt::Read | MemProt::Write);
   orc::ExecutorAddr B1Addr(0x1000);
   auto &B1 = G.createContentBlock(Sec1, BlockContent, B1Addr, 8, 0);
-  orc::ExecutorAddr B2Addr(0x1000);
+  orc::ExecutorAddr B2Addr(0x2000);
   auto &B2 = G.createContentBlock(Sec1, BlockContent, B2Addr, 8, 0);
   auto &S1 = G.addDefinedSymbol(B1, 0, "S1", 4, Linkage::Strong, Scope::Default,
                                 false, false);


        


More information about the llvm-commits mailing list