getFile() can return nullptr. This usually happens when Rels is empty so
the reference is never used. Still UBSAN complains.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
|  Differential  D26662  
Avoid creating reference from nullptr. ClosedPublic Authored by vitalybuka on Nov 14 2016, 11:36 PM. 
Details Summary getFile() can return nullptr. This usually happens when Rels is empty so 
Diff Detail 
 Event Timelinevitalybuka updated this object. Closed by commit rL286937: Avoid creating reference from nullptr. (authored by vitalybuka).  ·  Explain WhyNov 14 2016, 11:42 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
Diff 77952 lld/trunk/ELF/Relocations.cpp
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||