Skip to content

Commit 7c192f6

Browse files
committed
Do not assert
1 parent 824fbc1 commit 7c192f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

third_party/intel/lib/Target/LLVMIR/Dialect/TritonGEN/TritonGENToLLVMIRTranslation.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ class TritonGENDialectLLVMIRTranslationInterface
3636
NamedAttribute attribute,
3737
LLVM::ModuleTranslation &moduleTranslation) const final {
3838
StringRef attrName = attribute.getName().getValue();
39-
assert(
40-
attrName ==
41-
triton::TritonGEN::TritonGENDialect::getCacheControlsAttrName() &&
42-
"Only supported attribute");
39+
// Unsupported attribute name: skip.
40+
if (attrName !=
41+
triton::TritonGEN::TritonGENDialect::getCacheControlsAttrName())
42+
return success();
4343
auto decorationAttr =
4444
dyn_cast<triton::TritonGEN::DecorationCacheControlAttr>(
4545
attribute.getValue());

0 commit comments

Comments
 (0)