This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Drop const for value that is copied (NFC_.
ClosedPublic

Authored by fhahn on Mar 29 2020, 5:25 AM.

Details

Summary

This fixes

warning: loop variable 'Def' of type 'const llvm::Register' creates a copy from type 'const llvm::Register' [-Wrange-loop-analysis]

llvm::Register just contains a single unsigned and should be copied.

Diff Detail

Event Timeline

fhahn created this revision.Mar 29 2020, 5:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 29 2020, 5:25 AM
rampitec accepted this revision.Mar 29 2020, 12:14 PM
This revision is now accepted and ready to land.Mar 29 2020, 12:14 PM
This revision was automatically updated to reflect the committed changes.