This is an archive of the discontinued LLVM Phabricator instance.

[llvm-profgen] Fix warning of enumerated and non-enumerated type in conditional expression
ClosedPublic

Authored by wlei on Dec 15 2021, 7:37 PM.

Details

Summary

Fixing a gcc-11 warning of enumerated and non-enumerated type in conditional expression

Diff Detail

Event Timeline

wlei created this revision.Dec 15 2021, 7:37 PM
wlei requested review of this revision.Dec 15 2021, 7:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 15 2021, 7:37 PM
wlei updated this revision to Diff 394729.Dec 15 2021, 7:39 PM

Updating D115842: [llvm-profgen] Fix warning of enumerated and non-enumerated type in conditional expression

lbenes added a subscriber: lbenes.Dec 16 2021, 4:59 AM

This patch resolves the warning on gcc-11. Thanks wlei!

wlei edited the summary of this revision. (Show Details)Dec 16 2021, 10:53 AM
wlei added reviewers: lbenes, hoy, wenlei.

This patch resolves the warning on gcc-11. Thanks wlei!

Thanks for helping testing, patch published.

hoy accepted this revision.Dec 16 2021, 10:59 AM

lgtm, thx.

This revision is now accepted and ready to land.Dec 16 2021, 10:59 AM
This revision was landed with ongoing or failed builds.Dec 16 2021, 7:29 PM
This revision was automatically updated to reflect the committed changes.