Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions clang/include/clang/CIR/Dialect/Builder/CIRBaseBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -584,13 +584,14 @@ class CIRBaseBuilderTy : public mlir::OpBuilder {
};

//
// Alignement and size helpers
// Alignment and size helpers
//

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

// Fot 0 alignment, return an empty attribute.
// For 0 alignment, any overload of `getAlignmentAttr` returns an empty
// attribute.
mlir::IntegerAttr getAlignmentAttr(clang::CharUnits alignment) {
return getAlignmentAttr(alignment.getQuantity());
}
Expand Down
Loading