Skip to content

Commit ce4031f

Browse files
committed
Removed unnecessary semicolons
1 parent 9d3c6ab commit ce4031f

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

Diff for: lib/IRGen/GenType.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ FixedTypeInfo::getSpareBitExtraInhabitantIndex(IRGenFunction &IGF,
563563
// If we had a valid value, return -1. Otherwise, return the index.
564564
auto phi = IGF.Builder.CreatePHI(IGF.IGM.Int32Ty, 2);
565565
phi->addIncoming(llvm::ConstantInt::get(IGF.IGM.Int32Ty, -1), origBB);
566-
phi->addIncoming(idx, spareBB);;
566+
phi->addIncoming(idx, spareBB);
567567

568568
return phi;
569569
}

Diff for: lib/IRGen/HeapTypeInfo.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,13 @@ class HeapTypeInfo : public SingleScalarTypeInfo<Impl, ReferenceTypeInfo> {
169169
Address addr) const override {
170170
switch (asDerived().getReferenceCounting()) {
171171
case ReferenceCounting::Native:
172-
return LoadedRef(IGF.emitLoadNativeRefcountedPtr(addr), true);;
172+
return LoadedRef(IGF.emitLoadNativeRefcountedPtr(addr), true);
173173
case ReferenceCounting::ObjC:
174174
case ReferenceCounting::Block:
175175
case ReferenceCounting::Unknown:
176-
return LoadedRef(IGF.emitLoadUnknownRefcountedPtr(addr), true);;
176+
return LoadedRef(IGF.emitLoadUnknownRefcountedPtr(addr), true);
177177
case ReferenceCounting::Bridge:
178-
return LoadedRef(IGF.emitLoadBridgeRefcountedPtr(addr), true);;
178+
return LoadedRef(IGF.emitLoadBridgeRefcountedPtr(addr), true);
179179
case ReferenceCounting::Error:
180180
llvm_unreachable("not supported!");
181181
}

Diff for: lib/LLVMPasses/ARCEntryPointBuilder.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class ARCEntryPointBuilder {
165165
/// getRetain - Return a callable function for swift_retain.
166166
Constant *getRetain() {
167167
if (Retain)
168-
return Retain.get();;
168+
return Retain.get();
169169
auto *ObjectPtrTy = getObjectPtrTy();
170170

171171
auto &M = getModule();
@@ -180,7 +180,7 @@ class ARCEntryPointBuilder {
180180
/// getRelease - Return a callable function for swift_release.
181181
Constant *getRelease() {
182182
if (Release)
183-
return Release.get();;
183+
return Release.get();
184184
auto *ObjectPtrTy = getObjectPtrTy();
185185

186186
auto &M = getModule();

Diff for: lib/SIL/SILInstruction.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ namespace {
357357
// We have already checked the operands. Make sure that the tuple types
358358
// match up.
359359
TupleType *TT1 = cast<TupleInst>(LHS)->getTupleType();
360-
return TT1 == RHS->getTupleType();;
360+
return TT1 == RHS->getTupleType();
361361
}
362362

363363
bool visitTupleExtractInst(const TupleExtractInst *RHS) {

Diff for: lib/SILPasses/EarlySIL/DIMemoryUseCollector.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ namespace {
415415
/// the address and the refcount result of the allocation.
416416
void collectFrom() {
417417
IsSelfOfNonDelegatingInitializer =
418-
TheMemory.isNonDelegatingInit();;
418+
TheMemory.isNonDelegatingInit();
419419

420420
// If this is a delegating initializer, collect uses specially.
421421
if (TheMemory.isDelegatingInit()) {
@@ -1173,7 +1173,7 @@ collectClassSelfUses(SILValue ClassPointer, SILType MemorySILType,
11731173
// ref_element_addr P, #field lookups up a field.
11741174
if (auto *REAI = dyn_cast<RefElementAddrInst>(User)) {
11751175
assert(EltNumbering.count(REAI->getField()) &&
1176-
"ref_element_addr not a local field?");;
1176+
"ref_element_addr not a local field?");
11771177
// Recursively collect uses of the fields. Note that fields of the class
11781178
// could be tuples, so they may be tracked as independent elements.
11791179
llvm::SaveAndRestore<bool> X(IsSelfOfNonDelegatingInitializer, false);

Diff for: lib/Serialization/Deserialization.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2989,7 +2989,7 @@ Decl *ModuleFile::getDecl(DeclID DID, Optional<DeclContext *> ForcedContext) {
29892989
auto inheritedTypes = ctx.Allocate<TypeLoc>(rawInheritedIDs.size());
29902990
for_each(inheritedTypes, rawInheritedIDs,
29912991
[this](TypeLoc &tl, uint64_t rawID) {
2992-
tl = TypeLoc::withoutLoc(getType(rawID));;
2992+
tl = TypeLoc::withoutLoc(getType(rawID));
29932993
});
29942994
extension->setInherited(inheritedTypes);
29952995
extension->setCheckedInheritanceClause();

0 commit comments

Comments
 (0)