This is an archive of the discontinued LLVM Phabricator instance.

[AsmPrinter] Fix crash in handleIndirectSymViaGOTPCRel
ClosedPublic

Authored by bruno on Jun 24 2015, 2:06 PM.

Details

Summary

Check for symbols in MCValue before using them. Bail out early in case they are null. Fix for PR23779.
Rafael, the changes in this patch checks all the possibilities, but do you know if it's possible for evaluateAsRelocatable to return a MCValue with a null SymbolA?

Thanks,

Diff Detail

Repository
rL LLVM

Event Timeline

bruno updated this revision to Diff 28399.Jun 24 2015, 2:06 PM
bruno retitled this revision from to [AsmPrinter] Fix crash in handleIndirectSymViaGOTPCRel.
bruno updated this object.
bruno edited the test plan for this revision. (Show Details)
bruno added a reviewer: rafael.
bruno set the repository for this revision to rL LLVM.
bruno added a subscriber: Unknown Object (MLST).
bruno accepted this revision.Apr 13 2017, 11:26 AM

This was done a long time ago -> r240649

This revision is now accepted and ready to land.Apr 13 2017, 11:26 AM
bruno closed this revision.Apr 13 2017, 11:26 AM