Skip to content

Commit 6b5ba68

Browse files
xlaukolanza
authored andcommitted
[CIR][NFC] Backport typo fixes from upstream (llvm#1650)
1 parent 38d6504 commit 6b5ba68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/include/clang/CIR/Dialect/Builder/CIRBaseBuilder.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,13 +584,14 @@ class CIRBaseBuilderTy : public mlir::OpBuilder {
584584
};
585585

586586
//
587-
// Alignement and size helpers
587+
// Alignment and size helpers
588588
//
589589

590590
// Note that mlir::IntegerType is used instead of cir::IntType here because we
591591
// don't need sign information for these to be useful, so keep it simple.
592592

593-
// Fot 0 alignment, return an empty attribute.
593+
// For 0 alignment, any overload of `getAlignmentAttr` returns an empty
594+
// attribute.
594595
mlir::IntegerAttr getAlignmentAttr(clang::CharUnits alignment) {
595596
return getAlignmentAttr(alignment.getQuantity());
596597
}

0 commit comments

Comments
 (0)