This is an archive of the discontinued LLVM Phabricator instance.

[CFLAA] Check for pointer type when adding landingpad and vaarg instructions to CFLGraph
ClosedPublic

Authored by grievejia on Jul 28 2016, 4:26 PM.

Details

Summary

CFLGraphBuilder::addNode() contains an assertion that will fail if the added node is not of pointer type. This may happen for landingpad instruction. I'm not sure if va_arg instruction could also have non-pointer type. To be safe I added a check there as well.

Diff Detail

Event Timeline

grievejia updated this revision to Diff 66052.Jul 28 2016, 4:26 PM
grievejia retitled this revision from to [CFLAA] Check for pointer type when adding landingpad and vaarg instructions to CFLGraph.
grievejia updated this object.
grievejia added a subscriber: llvm-commits.
george.burgess.iv edited edge metadata.

Yay for assertions!

LGTM; thanks for the patch. :)

This revision is now accepted and ready to land.Jul 28 2016, 6:20 PM
This revision was automatically updated to reflect the committed changes.