From ce4031f2406c4859d51dd0495468e8df69114e99 Mon Sep 17 00:00:00 2001 From: Simone Ferrini Date: Thu, 3 Dec 2015 21:24:40 +0100 Subject: [PATCH] Removed unnecessary semicolons --- lib/IRGen/GenType.cpp | 2 +- lib/IRGen/HeapTypeInfo.h | 6 +++--- lib/LLVMPasses/ARCEntryPointBuilder.h | 4 ++-- lib/SIL/SILInstruction.cpp | 2 +- lib/SILPasses/EarlySIL/DIMemoryUseCollector.cpp | 4 ++-- lib/Serialization/Deserialization.cpp | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/IRGen/GenType.cpp b/lib/IRGen/GenType.cpp index fe7e298e3778f..3067a18fcf9f0 100644 --- a/lib/IRGen/GenType.cpp +++ b/lib/IRGen/GenType.cpp @@ -563,7 +563,7 @@ FixedTypeInfo::getSpareBitExtraInhabitantIndex(IRGenFunction &IGF, // If we had a valid value, return -1. Otherwise, return the index. auto phi = IGF.Builder.CreatePHI(IGF.IGM.Int32Ty, 2); phi->addIncoming(llvm::ConstantInt::get(IGF.IGM.Int32Ty, -1), origBB); - phi->addIncoming(idx, spareBB);; + phi->addIncoming(idx, spareBB); return phi; } diff --git a/lib/IRGen/HeapTypeInfo.h b/lib/IRGen/HeapTypeInfo.h index dd56a908c08c0..ec9268ce31047 100644 --- a/lib/IRGen/HeapTypeInfo.h +++ b/lib/IRGen/HeapTypeInfo.h @@ -169,13 +169,13 @@ class HeapTypeInfo : public SingleScalarTypeInfo { Address addr) const override { switch (asDerived().getReferenceCounting()) { case ReferenceCounting::Native: - return LoadedRef(IGF.emitLoadNativeRefcountedPtr(addr), true);; + return LoadedRef(IGF.emitLoadNativeRefcountedPtr(addr), true); case ReferenceCounting::ObjC: case ReferenceCounting::Block: case ReferenceCounting::Unknown: - return LoadedRef(IGF.emitLoadUnknownRefcountedPtr(addr), true);; + return LoadedRef(IGF.emitLoadUnknownRefcountedPtr(addr), true); case ReferenceCounting::Bridge: - return LoadedRef(IGF.emitLoadBridgeRefcountedPtr(addr), true);; + return LoadedRef(IGF.emitLoadBridgeRefcountedPtr(addr), true); case ReferenceCounting::Error: llvm_unreachable("not supported!"); } diff --git a/lib/LLVMPasses/ARCEntryPointBuilder.h b/lib/LLVMPasses/ARCEntryPointBuilder.h index 2e62e8e4c3b73..bd778bc8bb820 100644 --- a/lib/LLVMPasses/ARCEntryPointBuilder.h +++ b/lib/LLVMPasses/ARCEntryPointBuilder.h @@ -165,7 +165,7 @@ class ARCEntryPointBuilder { /// getRetain - Return a callable function for swift_retain. Constant *getRetain() { if (Retain) - return Retain.get();; + return Retain.get(); auto *ObjectPtrTy = getObjectPtrTy(); auto &M = getModule(); @@ -180,7 +180,7 @@ class ARCEntryPointBuilder { /// getRelease - Return a callable function for swift_release. Constant *getRelease() { if (Release) - return Release.get();; + return Release.get(); auto *ObjectPtrTy = getObjectPtrTy(); auto &M = getModule(); diff --git a/lib/SIL/SILInstruction.cpp b/lib/SIL/SILInstruction.cpp index b0b0fdcf491f2..560b13dd7030b 100644 --- a/lib/SIL/SILInstruction.cpp +++ b/lib/SIL/SILInstruction.cpp @@ -357,7 +357,7 @@ namespace { // We have already checked the operands. Make sure that the tuple types // match up. TupleType *TT1 = cast(LHS)->getTupleType(); - return TT1 == RHS->getTupleType();; + return TT1 == RHS->getTupleType(); } bool visitTupleExtractInst(const TupleExtractInst *RHS) { diff --git a/lib/SILPasses/EarlySIL/DIMemoryUseCollector.cpp b/lib/SILPasses/EarlySIL/DIMemoryUseCollector.cpp index 7e05c63b9bcbe..666e81f37dcf7 100644 --- a/lib/SILPasses/EarlySIL/DIMemoryUseCollector.cpp +++ b/lib/SILPasses/EarlySIL/DIMemoryUseCollector.cpp @@ -415,7 +415,7 @@ namespace { /// the address and the refcount result of the allocation. void collectFrom() { IsSelfOfNonDelegatingInitializer = - TheMemory.isNonDelegatingInit();; + TheMemory.isNonDelegatingInit(); // If this is a delegating initializer, collect uses specially. if (TheMemory.isDelegatingInit()) { @@ -1173,7 +1173,7 @@ collectClassSelfUses(SILValue ClassPointer, SILType MemorySILType, // ref_element_addr P, #field lookups up a field. if (auto *REAI = dyn_cast(User)) { assert(EltNumbering.count(REAI->getField()) && - "ref_element_addr not a local field?");; + "ref_element_addr not a local field?"); // Recursively collect uses of the fields. Note that fields of the class // could be tuples, so they may be tracked as independent elements. llvm::SaveAndRestore X(IsSelfOfNonDelegatingInitializer, false); diff --git a/lib/Serialization/Deserialization.cpp b/lib/Serialization/Deserialization.cpp index 62b719464de90..e186d32d16962 100644 --- a/lib/Serialization/Deserialization.cpp +++ b/lib/Serialization/Deserialization.cpp @@ -2989,7 +2989,7 @@ Decl *ModuleFile::getDecl(DeclID DID, Optional ForcedContext) { auto inheritedTypes = ctx.Allocate(rawInheritedIDs.size()); for_each(inheritedTypes, rawInheritedIDs, [this](TypeLoc &tl, uint64_t rawID) { - tl = TypeLoc::withoutLoc(getType(rawID));; + tl = TypeLoc::withoutLoc(getType(rawID)); }); extension->setInherited(inheritedTypes); extension->setCheckedInheritanceClause();