This is an archive of the discontinued LLVM Phabricator instance.

[IR Parser] Fix a crash handling zero width integer attributes.
ClosedPublic

Authored by lattner on Jan 10 2021, 6:33 PM.

Details

Summary

llvm::APInt cannot hold zero bit values, therefore we shouldn't try
to form them.

Diff Detail

Event Timeline

lattner created this revision.Jan 10 2021, 6:33 PM
lattner requested review of this revision.Jan 10 2021, 6:33 PM
rriddle accepted this revision.Jan 10 2021, 7:07 PM
This revision is now accepted and ready to land.Jan 10 2021, 7:07 PM

Thx for the quick review!