Skip to content

Commit 41b6128

Browse files
xlaukoerichkeane
andcommitted
Update clang/include/clang/CIR/Dialect/Builder/CIRBaseBuilder.h
Co-authored-by: Erich Keane <ekeane@nvidia.com>
1 parent ac27f4b commit 41b6128

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
@@ -423,13 +423,14 @@ class CIRBaseBuilderTy : public mlir::OpBuilder {
423423
};
424424

425425
//
426-
// Alignement and size helpers
426+
// Alignment and size helpers
427427
//
428428

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

432-
// For 0 alignment, return an empty attribute.
432+
// For 0 alignment, any overload of `getAlignmentAttr` returns an empty
433+
// attribute.
433434
mlir::IntegerAttr getAlignmentAttr(clang::CharUnits alignment) {
434435
return getAlignmentAttr(alignment.getQuantity());
435436
}

0 commit comments

Comments
 (0)