[Mlir-commits] [mlir] e39dae8 - [mlir] Fix GCC5 build broken by improper name redefinition

River Riddle llvmlistbot at llvm.org
Wed Jan 19 19:24:45 PST 2022


Author: River Riddle
Date: 2022-01-19T19:24:12-08:00
New Revision: e39dae85f1626c13624975e556f8a080adfa36e4

URL: https://github.com/llvm/llvm-project/commit/e39dae85f1626c13624975e556f8a080adfa36e4
DIFF: https://github.com/llvm/llvm-project/commit/e39dae85f1626c13624975e556f8a080adfa36e4.diff

LOG: [mlir] Fix GCC5 build broken by improper name redefinition

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp b/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
index 75017b9a50d52..e44832460c0e0 100644
--- a/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
+++ b/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
@@ -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);
 }


        


More information about the Mlir-commits mailing list