This is an archive of the discontinued LLVM Phabricator instance.

[TableGen] Fixes -Wrange-loop-analysis warnings
ClosedPublic

Authored by Mordante on Dec 22 2019, 7:12 AM.

Details

Summary

This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall.

Diff Detail

Event Timeline

Mordante created this revision.Dec 22 2019, 7:12 AM
aaron.ballman accepted this revision.Dec 22 2019, 9:02 AM

LGTM with a request to drop some top-level consts.

llvm/utils/TableGen/AsmMatcherEmitter.cpp
3350

Drop the top-level const? (Same elsewhere)

This revision is now accepted and ready to land.Dec 22 2019, 9:02 AM

@aaron.ballman thanks for the reviews. I'll drop the top-level const in this and the related patches.

This revision was automatically updated to reflect the committed changes.