Skip to content

Commit f118339

Browse files
Merge pull request #2181 from practicalswift/gardening-20160414
[gardening] Fix spacing, fix recently introduced typo: "compilaiton" → "compilation" & "noticable" → "noticeable"
2 parents 46935f6 + c36c517 commit f118339

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

include/swift/Reflection/TypeRef.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ class OpaqueTypeRef final : public TypeRef {
469469
public:
470470
OpaqueTypeRef() : TypeRef(TypeRefKind::Opaque) {}
471471

472-
static OpaqueTypeRef *get();
472+
static OpaqueTypeRef *get();
473473

474474
static bool classof(const TypeRef *TR) {
475475
return TR->getKind() == TypeRefKind::Opaque;

lib/SIL/Linker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ SILFunction *SILLinkerVisitor::lookupFunction(StringRef Name,
141141

142142
/// Process Decl, recursively deserializing any thing Decl may reference.
143143
bool SILLinkerVisitor::hasFunction(StringRef Name, SILLinkage Linkage) {
144-
return Loader->hasSILFunction(Name, Linkage);
144+
return Loader->hasSILFunction(Name, Linkage);
145145
}
146146

147147
/// Deserialize the VTable mapped to C if it exists and all SIL the VTable

lib/SIL/SILModule.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ SILFunction *SILModule::hasFunction(StringRef Name, SILLinkage Linkage) {
497497

498498
assert((!F || F->getLinkage() != Linkage) &&
499499
"hasFunction should be only called for functions that are not "
500-
"contained in the SILModule yet or do not have a required linkage");
500+
"contained in the SILModule yet or do not have a required linkage");
501501
(void)F;
502502

503503
SILLinkerVisitor Visitor(*this, getSILLoader(),
@@ -512,7 +512,7 @@ SILFunction *SILModule::hasFunction(StringRef Name, SILLinkage Linkage) {
512512
"SILFunction has a wrong linkage");
513513
}
514514
// If a function exists already and it is a non-optimizing
515-
// compilaiton, simply convert it into an external declaration,
515+
// compilation, simply convert it into an external declaration,
516516
// so that a compiled version from the shared library is used.
517517
if (F->isDefinition() &&
518518
F->getModule().getOptions().Optimization <

lib/Serialization/DeserializeSIL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1835,7 +1835,7 @@ bool SILDeserializer::hasSILFunction(StringRef Name,
18351835
(void)kind;
18361836

18371837
// Read function properties only, e.g. its linkage and other attributes.
1838-
// TODO: If this results in any noticable performance problems, Cache the
1838+
// TODO: If this results in any noticeable performance problems, Cache the
18391839
// linkage to avoid re-reading it from the bitcode each time?
18401840
TypeID funcTyID;
18411841
unsigned rawLinkage, isTransparent, isFragile, isThunk, isGlobal,

0 commit comments

Comments
 (0)