This is an archive of the discontinued LLVM Phabricator instance.

Use isa<> instead of checking return value of definition().
Needs ReviewPublic

Authored by ruiu on Oct 14 2014, 2:20 PM.

Details

Reviewers
kledzik
Summary

definition() is supposed to be used through isa, dyn_cast or cast.
It's better to not call that directly.

Diff Detail

Event Timeline

ruiu updated this revision to Diff 14891.Oct 14 2014, 2:20 PM
ruiu retitled this revision from to Use isa<> instead of checking return value of definition()..
ruiu updated this object.
ruiu edited the test plan for this revision. (Show Details)
ruiu added a reviewer: kledzik.
ruiu added a subscriber: Unknown Object (MLST).