@@ -77,7 +77,7 @@ namespace {
7777
7878TEST_F (ReplaceAllSymbolUsesTest, OperationInModuleOp) {
7979 // Symbol as `Operation *`, rename within module.
80- testReplaceAllSymbolUses ([&](auto symbolTable, auto module , auto fooOp,
80+ testReplaceAllSymbolUses ([&](const auto & symbolTable, auto module , auto fooOp,
8181 auto barOp) -> LogicalResult {
8282 return symbolTable.replaceAllSymbolUses (
8383 barOp, StringAttr::get (context.get (), " baz" ), module );
@@ -86,7 +86,7 @@ TEST_F(ReplaceAllSymbolUsesTest, OperationInModuleOp) {
8686
8787TEST_F (ReplaceAllSymbolUsesTest, StringAttrInModuleOp) {
8888 // Symbol as `StringAttr`, rename within module.
89- testReplaceAllSymbolUses ([&](auto symbolTable, auto module , auto fooOp,
89+ testReplaceAllSymbolUses ([&](const auto & symbolTable, auto module , auto fooOp,
9090 auto barOp) -> LogicalResult {
9191 return symbolTable.replaceAllSymbolUses (
9292 StringAttr::get (context.get (), " bar" ),
@@ -96,7 +96,7 @@ TEST_F(ReplaceAllSymbolUsesTest, StringAttrInModuleOp) {
9696
9797TEST_F (ReplaceAllSymbolUsesTest, OperationInModuleBody) {
9898 // Symbol as `Operation *`, rename within module body.
99- testReplaceAllSymbolUses ([&](auto symbolTable, auto module , auto fooOp,
99+ testReplaceAllSymbolUses ([&](const auto & symbolTable, auto module , auto fooOp,
100100 auto barOp) -> LogicalResult {
101101 return symbolTable.replaceAllSymbolUses (
102102 barOp, StringAttr::get (context.get (), " baz" ), &module ->getRegion (0 ));
@@ -105,7 +105,7 @@ TEST_F(ReplaceAllSymbolUsesTest, OperationInModuleBody) {
105105
106106TEST_F (ReplaceAllSymbolUsesTest, StringAttrInModuleBody) {
107107 // Symbol as `StringAttr`, rename within module body.
108- testReplaceAllSymbolUses ([&](auto symbolTable, auto module , auto fooOp,
108+ testReplaceAllSymbolUses ([&](const auto & symbolTable, auto module , auto fooOp,
109109 auto barOp) -> LogicalResult {
110110 return symbolTable.replaceAllSymbolUses (
111111 StringAttr::get (context.get (), " bar" ),
@@ -115,7 +115,7 @@ TEST_F(ReplaceAllSymbolUsesTest, StringAttrInModuleBody) {
115115
116116TEST_F (ReplaceAllSymbolUsesTest, OperationInFuncOp) {
117117 // Symbol as `Operation *`, rename within function.
118- testReplaceAllSymbolUses ([&](auto symbolTable, auto module , auto fooOp,
118+ testReplaceAllSymbolUses ([&](const auto & symbolTable, auto module , auto fooOp,
119119 auto barOp) -> LogicalResult {
120120 return symbolTable.replaceAllSymbolUses (
121121 barOp, StringAttr::get (context.get (), " baz" ), fooOp);
@@ -124,7 +124,7 @@ TEST_F(ReplaceAllSymbolUsesTest, OperationInFuncOp) {
124124
125125TEST_F (ReplaceAllSymbolUsesTest, StringAttrInFuncOp) {
126126 // Symbol as `StringAttr`, rename within function.
127- testReplaceAllSymbolUses ([&](auto symbolTable, auto module , auto fooOp,
127+ testReplaceAllSymbolUses ([&](const auto & symbolTable, auto module , auto fooOp,
128128 auto barOp) -> LogicalResult {
129129 return symbolTable.replaceAllSymbolUses (
130130 StringAttr::get (context.get (), " bar" ),
0 commit comments