Skip to content

Commit b951928

Browse files
authored
Merge pull request #5207 from practicalswift/genconstant-typos
2 parents 5b3e7fc + 622f43b commit b951928

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/IRGen/GenConstant.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===---- GenConstant.cpp - Swift IR Generation For Constants ---*- C++ -*-===//
1+
//===--- GenConstant.cpp - Swift IR Generation For Constants ----*- C++ -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//
@@ -92,7 +92,7 @@ llvm::Constant *emitConstantStructOrTuple(IRGenModule &IGM, InstTy inst,
9292

9393
SmallVector<llvm::Constant *, 32> elts(sTy->getNumElements(), nullptr);
9494

95-
// run over the Swift initialisers, putting them into the struct as
95+
// run over the Swift initializers, putting them into the struct as
9696
// appropriate.
9797
for (unsigned i = 0, e = inst->getElements().size(); i != e; i++) {
9898
auto operand = inst->getOperand(i);
@@ -111,7 +111,7 @@ llvm::Constant *emitConstantStructOrTuple(IRGenModule &IGM, InstTy inst,
111111
auto *eltTy = sTy->getElementType(i);
112112
assert(eltTy->isArrayTy() &&
113113
eltTy->getArrayElementType()->isIntegerTy(8) &&
114-
"Unexpected non-byte-array type for constrant struct padding");
114+
"Unexpected non-byte-array type for constant struct padding");
115115
elt = llvm::UndefValue::get(eltTy);
116116
}
117117
}

lib/IRGen/GenConstant.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===---- GenConstant.cpp - Swift IR Generation For Constants ---*- C++ -*-===//
1+
//===--- GenConstant.h - Swift IR Generation For Constants ------*- C++ -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

0 commit comments

Comments
 (0)