Skip to content

Commit ffe23ba

Browse files
committed
update dialect
1 parent 0a8fd5b commit ffe23ba

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

clang/lib/CIR/Dialect/IR/CIRDialect.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2538,8 +2538,7 @@ ParseResult cir::FuncOp::parse(OpAsmParser &parser, OperationState &state) {
25382538
auto visibilityNameAttr = getGlobalVisibilityAttrName(state.name);
25392539
auto dsoLocalNameAttr = getDsoLocalAttrName(state.name);
25402540
auto annotationsNameAttr = getAnnotationsAttrName(state.name);
2541-
auto cxxCtorAttr = getCxxSpecialMemberAttrName(state.name);
2542-
auto cxxDtorAttr = getCxxSpecialMemberAttrName(state.name);
2541+
auto cxxSpecialMemberAttr = getCxxSpecialMemberAttrName(state.name);
25432542
if (::mlir::succeeded(parser.parseOptionalKeyword(builtinNameAttr.strref())))
25442543
state.addAttribute(builtinNameAttr, parser.getBuilder().getUnitAttr());
25452544
if (::mlir::succeeded(
@@ -2653,7 +2652,7 @@ ParseResult cir::FuncOp::parse(OpAsmParser &parser, OperationState &state) {
26532652
ctorKind = cir::CtorKind::Default;
26542653
if (copyCtor)
26552654
ctorKind = cir::CtorKind::Copy;
2656-
state.addAttribute(cxxCtorAttr, CXXCtorAttr::get(type, ctorKind));
2655+
state.addAttribute(cxxSpecialMemberAttr, CXXCtorAttr::get(type, ctorKind));
26572656
}
26582657

26592658
if (mlir::succeeded(parser.parseOptionalKeyword("dtor"))) {
@@ -2666,7 +2665,7 @@ ParseResult cir::FuncOp::parse(OpAsmParser &parser, OperationState &state) {
26662665
if (parser.parseGreater().failed())
26672666
return failure();
26682667

2669-
state.addAttribute(cxxDtorAttr, CXXDtorAttr::get(type));
2668+
state.addAttribute(cxxSpecialMemberAttr, CXXDtorAttr::get(type));
26702669
}
26712670

26722671
// If additional attributes are present, parse them.

0 commit comments

Comments
 (0)