Skip to content

Commit e28e202

Browse files
committed
Incorporate review comment
1 parent 263ec5a commit e28e202

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

mlir/include/mlir/IR/EnumAttr.td

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ class EnumCase<string sym, int intVal, string strVal, int widthVal> {
3939
class IntEnumAttrCaseBase<I intType, string sym, string strVal, int intVal> :
4040
EnumCase<sym, intVal, strVal, intType.bitwidth>,
4141
SignlessIntegerAttrBase<intType, "case " # strVal> {
42-
let predicate = CPred<
43-
"::llvm::cast<::mlir::IntegerAttr>($_self).getValue().eq(::llvm::APInt("#intType
44-
.bitwidth#", "#intVal#"))">;
42+
let predicate = CPred<[{
43+
::llvm::cast<::mlir::IntegerAttr>($_self).getValue().eq(::llvm::APInt(}]
44+
# intType.bitwidth # ", "
45+
# intVal #
46+
"))">;
4547
}
4648

4749
// Cases of integer enums with a specific type. By default, the string

0 commit comments

Comments
 (0)