[PATCH] Segfault in AArch64 backend with -g and -mbig-endian
Eric Christopher
echristo at gmail.com
Wed Aug 13 10:18:19 PDT 2014
================
Comment at: lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp:538
@@ -537,3 +537,3 @@
const MCSection *Sec = Fixup.getValue()->FindAssociatedSection();
- const MCSectionELF *SecELF = static_cast<const MCSectionELF *>(Sec);
- if (SecELF->getSectionName() == ".eh_frame")
+ const MCSectionELF *SecELF = dyn_cast_or_null<const MCSectionELF>(Sec);
+ if (SecELF && SecELF->getSectionName() == ".eh_frame")
----------------
Fixup to a null section? How's that happen?
http://reviews.llvm.org/D4870
More information about the llvm-commits
mailing list