[X86] Make the X86FrameSortingComparator operator const. NFCI.

Fixes a cppcheck remark.
This commit is contained in:
Simon Pilgrim 2020-10-31 12:15:43 +00:00
parent 4da6a48399
commit e0cbcf96ce
1 changed files with 1 additions and 1 deletions

View File

@ -3362,7 +3362,7 @@ struct X86FrameSortingObject {
// at the end of our list.
struct X86FrameSortingComparator {
inline bool operator()(const X86FrameSortingObject &A,
const X86FrameSortingObject &B) {
const X86FrameSortingObject &B) const {
uint64_t DensityAScaled, DensityBScaled;
// For consistency in our comparison, all invalid objects are placed