We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47b2b30 commit 7074ad7Copy full SHA for 7074ad7
mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRVPass.cpp
@@ -146,7 +146,7 @@ void GPUToSPIRVPass::runOnOperation() {
146
builder.setInsertionPoint(funcOp);
147
auto newFuncOp = builder.create<func::FuncOp>(
148
funcOp.getLoc(), funcOp.getName(), funcOp.getFunctionType());
149
- auto entryBlock = newFuncOp.addEntryBlock();
+ auto *entryBlock = newFuncOp.addEntryBlock();
150
builder.setInsertionPointToEnd(entryBlock);
151
builder.create<func::ReturnOp>(funcOp.getLoc());
152
newFuncOp->setAttr(gpu::GPUDialect::getKernelFuncAttrName(),
0 commit comments