Page MenuHomePhabricator

[ValueTracking] Instruction::isBinaryOp should be used for constexprs
ClosedPublic

Authored by aqjune on Sun, Jul 26, 4:53 AM.

Details

Summary

This is a simple patch that makes canCreateUndefOrPoison use
Instruction::isBinaryOp because BinaryOperator inherits Instruction.

Diff Detail

Event Timeline

aqjune created this revision.Sun, Jul 26, 4:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptSun, Jul 26, 4:53 AM
nikic accepted this revision.Sun, Jul 26, 5:43 AM

LGTM

This revision is now accepted and ready to land.Sun, Jul 26, 5:43 AM
This revision was automatically updated to reflect the committed changes.