Skip to content

Removed unnecessary semicolons #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 3, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/IRGen/GenType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions lib/IRGen/HeapTypeInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ class HeapTypeInfo : public SingleScalarTypeInfo<Impl, ReferenceTypeInfo> {
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!");
}
Expand Down
4 changes: 2 additions & 2 deletions lib/LLVMPasses/ARCEntryPointBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion lib/SIL/SILInstruction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ namespace {
// We have already checked the operands. Make sure that the tuple types
// match up.
TupleType *TT1 = cast<TupleInst>(LHS)->getTupleType();
return TT1 == RHS->getTupleType();;
return TT1 == RHS->getTupleType();
}

bool visitTupleExtractInst(const TupleExtractInst *RHS) {
Expand Down
4 changes: 2 additions & 2 deletions lib/SILPasses/EarlySIL/DIMemoryUseCollector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down Expand Up @@ -1173,7 +1173,7 @@ collectClassSelfUses(SILValue ClassPointer, SILType MemorySILType,
// ref_element_addr P, #field lookups up a field.
if (auto *REAI = dyn_cast<RefElementAddrInst>(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<bool> X(IsSelfOfNonDelegatingInitializer, false);
Expand Down
2 changes: 1 addition & 1 deletion lib/Serialization/Deserialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2989,7 +2989,7 @@ Decl *ModuleFile::getDecl(DeclID DID, Optional<DeclContext *> ForcedContext) {
auto inheritedTypes = ctx.Allocate<TypeLoc>(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();
Expand Down