Skip to content

Commit e39dae8

Browse files
committed
[mlir] Fix GCC5 build broken by improper name redefinition
1 parent 5dea7a8 commit e39dae8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mlir/lib/Dialect/GPU/IR/GPUDialect.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -731,12 +731,12 @@ void GPUFuncOp::build(OpBuilder &builder, OperationState &result,
731731
Block *entryBlock = new Block;
732732

733733
// TODO: Allow passing in proper locations here.
734-
for (Type type : type.getInputs())
735-
entryBlock->addArgument(type, result.location);
736-
for (Type type : workgroupAttributions)
737-
entryBlock->addArgument(type, result.location);
738-
for (Type type : privateAttributions)
739-
entryBlock->addArgument(type, result.location);
734+
for (Type argTy : type.getInputs())
735+
entryBlock->addArgument(argTy, result.location);
736+
for (Type argTy : workgroupAttributions)
737+
entryBlock->addArgument(argTy, result.location);
738+
for (Type argTy : privateAttributions)
739+
entryBlock->addArgument(argTy, result.location);
740740

741741
body->getBlocks().push_back(entryBlock);
742742
}

0 commit comments

Comments
 (0)