@@ -394,7 +394,7 @@ extension DIBuilder {
394
394
named name: String ,
395
395
scope: DIScope , file: FileMetadata , line: Int ,
396
396
type: DIType , alwaysPreserve: Bool = false ,
397
- flags: DIFlags = [ ] , alignment: Alignment = . zero
397
+ flags: DIFlags = [ ] , alignment: Alignment
398
398
) -> LocalVariableMetadata {
399
399
let radix = UInt32 ( self . module. dataLayout. intPointerType ( ) . width)
400
400
guard let variable = LLVMDIBuilderCreateAutoVariable (
@@ -502,7 +502,7 @@ extension DIBuilder {
502
502
/// - file: File where this member is defined.
503
503
/// - line: Line number.
504
504
/// - size: Member size.
505
- /// - alignmemnt : Member alignment.
505
+ /// - alignment : Member alignment.
506
506
/// - elements: Enumeration elements.
507
507
/// - numElements: Number of enumeration elements.
508
508
/// - underlyingType: Underlying type of a C++11/ObjC fixed enum.
@@ -675,7 +675,7 @@ extension DIBuilder {
675
675
/// - addressSpace: The address space the pointer type reside in.
676
676
/// - name: The name of the pointer type.
677
677
public func buildPointerType(
678
- pointee: DIType , size: Size , alignment: Alignment = . zero ,
678
+ pointee: DIType , size: Size , alignment: Alignment ,
679
679
addressSpace: AddressSpace = . zero, name: String = " "
680
680
) -> DIType {
681
681
let radix = UInt32 ( self . module. dataLayout. intPointerType ( ) . width)
@@ -1258,15 +1258,14 @@ extension DIBuilder {
1258
1258
/// - expression: The location of the global relative to the attached
1259
1259
/// GlobalVariable.
1260
1260
/// - declaration: Reference to the corresponding declaration.
1261
- /// - alignment: Variable alignment(or 0 if no alignment attr was
1262
- /// specified)
1261
+ /// - alignment: Variable alignment
1263
1262
public func buildGlobalExpression(
1264
1263
named name: String , linkageName: String , type: DIType ,
1265
1264
scope: DIScope , file: FileMetadata , line: Int ,
1266
1265
isLocal: Bool = true ,
1267
1266
expression: ExpressionMetadata ? = nil ,
1268
1267
declaration: IRMetadata ? = nil ,
1269
- alignment: Alignment = . zero
1268
+ alignment: Alignment
1270
1269
) -> ExpressionMetadata {
1271
1270
let radix = UInt32 ( self . module. dataLayout. intPointerType ( ) . width)
1272
1271
guard let ty = LLVMDIBuilderCreateGlobalVariableExpression (
0 commit comments