Skip to content

Commit 949f67d

Browse files
committed
Update
1 parent e2d3f9c commit 949f67d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

clang/include/clang/CIR/Dialect/IR/CIRAttrs.td

+3-2
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,11 @@ def CIR_BoolAttr : CIR_Attr<"Bool", "bool", [TypedAttrInterface]> {
9696
// UninitializedUnionFieldAttr
9797
//===----------------------------------------------------------------------===//
9898

99-
def UninitializedUnionFieldAttr : CIR_Attr<"UninitializedUnionField", "uninitialized_union_field", [TypedAttrInterface]> {
99+
def InactiveUnionFieldAttr : CIR_Attr<"InactiveUnionField", "inactive_field", [TypedAttrInterface]> {
100100
let summary = "Attribute to represent an uninitialized field for a union.";
101101
let description = [{
102-
The UninitializedUnionFieldAttr is used to represent an uninitialized field for a union.
102+
The InactiveUnionFieldAttr is used to represent an uninitialized field
103+
for a union.
103104
}];
104105

105106
let parameters = (ins AttributeSelfTypeParameter<"">:$type);

clang/lib/CIR/CodeGen/CIRGenExprConst.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ mlir::Attribute ConstantAggregateBuilder::buildFrom(
379379
bool Packed = false;
380380
ArrayRef<mlir::Attribute> UnpackedElems;
381381

382-
// Fullill the init elements for union. This comes from a fundamental
382+
// Fill the init elements for union. This comes from a fundamental
383383
// difference between CIR and LLVM IR. In LLVM IR, the union is simply a
384384
// struct with the largest member. So it is fine to have only one init
385385
// element. But in CIR, the union has the information for all members. So if

0 commit comments

Comments
 (0)