[Mlir-commits] [mlir] [MLIR][LLVM] Reject distinct generic metadata on import (PR #212455)
Tobias Gysi
llvmlistbot at llvm.org
Tue Jul 28 07:09:54 PDT 2026
================
@@ -181,6 +181,8 @@ static Attribute convertMetadataToAttrImpl(
return MDFuncAttr::get(ctx, FlatSymbolRefAttr::get(ctx, fn->getName()));
}
if (auto *node = dyn_cast<llvm::MDNode>(md)) {
+ if (node->isDistinct())
----------------
gysit wrote:
nit: maybe add a short comment that we bail out since we cannot preserve the distinctness of the metadata.
https://github.com/llvm/llvm-project/pull/212455
More information about the Mlir-commits
mailing list