[PATCH] D103350: [lld/mac] Don't crash on -order_file with assembly inputs on arm64
Nico Weber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 28 18:00:59 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc4053cd14eb9: [lld/mac] Don't crash on -order_file with assembly inputs on arm64 (authored by thakis).
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103350/new/
https://reviews.llvm.org/D103350
Files:
lld/MachO/Writer.cpp
lld/test/MachO/order-file.s
Index: lld/test/MachO/order-file.s
===================================================================
--- lld/test/MachO/order-file.s
+++ lld/test/MachO/order-file.s
@@ -172,3 +172,7 @@
_main:
callq "-[Foo doFoo:andBar:]"
ret
+
+.section __DWARF,__debug_aranges,regular,debug
+ltmp1:
+ .byte 0
Index: lld/MachO/Writer.cpp
===================================================================
--- lld/MachO/Writer.cpp
+++ lld/MachO/Writer.cpp
@@ -748,7 +748,7 @@
for (const InputFile *file : inputFiles) {
if (isa<ObjFile>(file))
for (Symbol *sym : file->symbols)
- if (auto *d = dyn_cast<Defined>(sym))
+ if (auto *d = dyn_cast_or_null<Defined>(sym))
addSym(*d);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103350.348609.patch
Type: text/x-patch
Size: 718 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210529/79a538e5/attachment.bin>
More information about the llvm-commits
mailing list