Skip to content

Commit 08fa9f8

Browse files
mtrofincopybara-github
authored andcommitted
[NFC] const-ify arguments to GreaterBitwidthComparator
PiperOrigin-RevId: 872572699
1 parent 8925187 commit 08fa9f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

xls/passes/resource_sharing_pass.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -399,10 +399,10 @@ ResourceSharingPass::ComputeFoldableActions(
399399
return foldable_actions;
400400
}
401401

402-
bool GreaterBitwidthComparator(BinaryFoldingAction* a0,
403-
BinaryFoldingAction* a1) {
404-
Node* a0_source = a0->GetFrom();
405-
Node* a1_source = a1->GetFrom();
402+
bool GreaterBitwidthComparator(const BinaryFoldingAction* a0,
403+
const BinaryFoldingAction* a1) {
404+
const Node* a0_source = a0->GetFrom();
405+
const Node* a1_source = a1->GetFrom();
406406
int64_t a0_bitwidth = a0_source->BitCountOrDie();
407407
int64_t a1_bitwidth = a1_source->BitCountOrDie();
408408
if (a0_bitwidth == a1_bitwidth) {

0 commit comments

Comments
 (0)