[mlir] Fix GCC5 build broken by improper name redefinition

This commit is contained in:
River Riddle 2022-01-19 19:24:08 -08:00
parent 5dea7a865e
commit e39dae85f1
1 changed files with 6 additions and 6 deletions

View File

@ -731,12 +731,12 @@ void GPUFuncOp::build(OpBuilder &builder, OperationState &result,
Block *entryBlock = new Block;
// TODO: Allow passing in proper locations here.
for (Type type : type.getInputs())
entryBlock->addArgument(type, result.location);
for (Type type : workgroupAttributions)
entryBlock->addArgument(type, result.location);
for (Type type : privateAttributions)
entryBlock->addArgument(type, result.location);
for (Type argTy : type.getInputs())
entryBlock->addArgument(argTy, result.location);
for (Type argTy : workgroupAttributions)
entryBlock->addArgument(argTy, result.location);
for (Type argTy : privateAttributions)
entryBlock->addArgument(argTy, result.location);
body->getBlocks().push_back(entryBlock);
}