This is an archive of the discontinued LLVM Phabricator instance.

Fix an enumeral mismatch warning.
ClosedPublic

Authored by hokein on Jun 13 2016, 1:49 AM.

Details

Summary

The "-Werror=enum-compare" shows that the statement is using two different enums:

enumeral mismatch in conditional expression: 'llvm::X86ISD::NodeType' vs 'llvm::ISD::NodeType'

A follow-up fix on D21235.

Diff Detail

Repository
rL LLVM

Event Timeline

hokein updated this revision to Diff 60494.Jun 13 2016, 1:49 AM
hokein retitled this revision from to Fix an enum-compare compliation warning message..
hokein updated this object.
hokein added a reviewer: klimek.
hokein added subscribers: cfe-commits, spatel.
klimek accepted this revision.Jun 13 2016, 1:56 AM
klimek edited edge metadata.

LG. Fix the change description when submitting, though - this is not about an enum comparison, right?

This revision is now accepted and ready to land.Jun 13 2016, 1:56 AM
hokein retitled this revision from Fix an enum-compare compliation warning message. to Fix an enumeral mismatch warning..Jun 13 2016, 1:59 AM
hokein updated this object.
hokein edited edge metadata.

LG. Fix the change description when submitting, though - this is not about an enum comparison, right?

Done. This is enumeral mismatch indeed.

This revision was automatically updated to reflect the committed changes.