This is an archive of the discontinued LLVM Phabricator instance.

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
the reference is never used. Still UBSAN complains.

Diff Detail

Repository
rL LLVM

Event Timeline

vitalybuka retitled this revision from to Avoid creating reference from nullptr..
vitalybuka updated this object.
vitalybuka added a reviewer: rafael.
vitalybuka added a subscriber: llvm-commits.
This revision was automatically updated to reflect the committed changes.