[lld] 3ab947e - [lld/mac] Add test for bug fixed in reland 82ca390062d115

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 13 09:54:01 PDT 2022


Author: Nico Weber
Date: 2022-10-13T12:52:25-04:00
New Revision: 3ab947ede034b629765f26c7e2c9940fc7587d04

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

LOG: [lld/mac] Add test for bug fixed in reland 82ca390062d115

Differential Revision: https://reviews.llvm.org/D135889

Added: 
    

Modified: 
    lld/test/MachO/undef-spell-corrector.s

Removed: 
    


################################################################################
diff  --git a/lld/test/MachO/undef-spell-corrector.s b/lld/test/MachO/undef-spell-corrector.s
index 12fb3f69f5d5..54e0d9e46d42 100644
--- a/lld/test/MachO/undef-spell-corrector.s
+++ b/lld/test/MachO/undef-spell-corrector.s
@@ -86,6 +86,13 @@ call bcde
 call abcd
 call abde
 
+# Creates a nullptr entry in ObjFile::symbols, to test we don't crash on that.
+.section  __DWARF,__debug_aranges,regular,debug
+ltmp1:
+  .byte 0
+
+.subsections_via_symbols
+
 #--- bbcde-abcdd.s
 call bbcde
 call abcdd


        


More information about the llvm-commits mailing list