[Mlir-commits] [mlir] [mlir][SPIRV] Do not access erased op in SPIRV->LLVM lowering (PR #148373)
Markus Böck
llvmlistbot at llvm.org
Sat Jul 12 09:51:02 PDT 2025
================
@@ -779,13 +779,15 @@ class GlobalVariablePattern
auto linkage = storageClass == spirv::StorageClass::Private
? LLVM::Linkage::Private
: LLVM::Linkage::External;
+ auto locationAttrName = op.getLocationAttrName();
+ auto locationAttr = op.getLocationAttr();
----------------
zero9178 wrote:
```suggestion
StringAttr locationAttrName = op.getLocationAttrName();
IntegerAttr locationAttr = op.getLocationAttr();
```
https://github.com/llvm/llvm-project/pull/148373
More information about the Mlir-commits
mailing list