[PATCH] D25365: [ELF] - Do not crash on absolute local symbol starting from ".L".
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 7 12:47:31 PDT 2016
ruiu added inline comments.
================
Comment at: ELF/Writer.cpp:339
- return !(Sec->getSectionHdr()->sh_flags & SHF_MERGE);
+ return !(Sec && Sec->getSectionHdr()->sh_flags & SHF_MERGE);
}
----------------
Add () around &. This is probably better.
return !Sec || !(Sec->getSectionHdr()->sh_flags & SHF_MERGE);
https://reviews.llvm.org/D25365
More information about the llvm-commits
mailing list