Skip to content

Commit fd5c33d

Browse files
committed
[mlir][spirv]: Address Feedback
Make variable type explicit in definition. Signed-off-by: Jack Frankland <[email protected]>
1 parent 2a4c348 commit fd5c33d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/SPIRV/Transforms/LowerABIAttributesPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ createGlobalVarForEntryPointArgument(OpBuilder &builder, spirv::FuncOp funcOp,
5858
spirv::PointerType::get(spirv::StructType::get(varType), *storageClass);
5959
}
6060
auto varPtrType = cast<spirv::PointerType>(varType);
61-
auto pointeeType = varPtrType.getPointeeType();
61+
Type pointeeType = varPtrType.getPointeeType();
6262

6363
// Images are an opaque type and so we can just return a pointer to an image.
6464
// Note that currently only sampled images are supported in the SPIR-V

0 commit comments

Comments
 (0)