Skip to content

Commit f9f69da

Browse files
[clang] Remove redundant control flow statements (NFC) (#140359)
1 parent 0642bf9 commit f9f69da

File tree

9 files changed

+0
-10
lines changed

9 files changed

+0
-10
lines changed

clang/lib/AST/DeclTemplate.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,6 @@ void RedeclarableTemplateDecl::loadLazySpecializationsImpl(
359359

360360
ExternalSource->LoadExternalSpecializations(this->getCanonicalDecl(),
361361
OnlyPartial);
362-
return;
363362
}
364363

365364
bool RedeclarableTemplateDecl::loadLazySpecializationsImpl(

clang/lib/CodeGen/CGExprAgg.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,6 @@ static void EmitHLSLScalarFlatCast(CodeGenFunction &CGF, Address DestVal,
548548
}
549549
CGF.Builder.CreateStore(Cast, StoreGEPList[I].first);
550550
}
551-
return;
552551
}
553552

554553
// emit a flat cast where the RHS is an aggregate

clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1759,7 +1759,6 @@ void CGOpenMPRuntimeGPU::emitReduction(
17591759
CGF.getTarget().getGridValue(),
17601760
C.getLangOpts().OpenMPCUDAReductionBufNum, RTLoc));
17611761
CGF.Builder.restoreIP(AfterIP);
1762-
return;
17631762
}
17641763

17651764
const VarDecl *

clang/lib/Driver/ToolChains/CommonArgs.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2576,8 +2576,6 @@ static void GetSDLFromOffloadArchive(
25762576
InputInfo(&JA, C.getArgs().MakeArgString(OutputLib))));
25772577

25782578
CC1Args.push_back(DriverArgs.MakeArgString(OutputLib));
2579-
2580-
return;
25812579
}
25822580

25832581
// Wrapper function used by driver for adding SDLs during link phase.

clang/lib/InstallAPI/DylibVerifier.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,6 @@ void DylibVerifier::visitSymbolInDylib(const Record &R, SymbolContext &SymCtx) {
750750
// Missing declarations are dropped for ErrorsOnly mode. It is the last
751751
// remaining mode.
752752
updateState(Result::Ignore);
753-
return;
754753
}
755754

756755
void DylibVerifier::visitGlobal(const GlobalRecord &R) {

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3982,7 +3982,6 @@ static void handleFormatMatchesAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
39823982

39833983
S.Diag(AL.getLoc(), diag::err_format_nonliteral)
39843984
<< FormatStrExpr->getSourceRange();
3985-
return;
39863985
}
39873986

39883987
/// Handle __attribute__((callback(CalleeIdx, PayloadIdx0, ...))) attributes.

clang/lib/Sema/SemaExpr.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1639,7 +1639,6 @@ static void CheckUnicodeArithmeticConversions(Sema &SemaRef, Expr *LHS,
16391639
SemaRef.Diag(Loc, diag::warn_arith_conv_mixed_unicode_types)
16401640
<< LHS->getSourceRange() << RHS->getSourceRange() << ACK << LHSType
16411641
<< RHSType;
1642-
return;
16431642
}
16441643

16451644
/// UsualArithmeticConversions - Performs various conversions that are common to

clang/lib/Sema/SemaInit.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9853,7 +9853,6 @@ static void CheckC23ConstexprInitStringLiteral(const StringLiteral *SE,
98539853
return;
98549854
}
98559855
}
9856-
return;
98579856
}
98589857

98599858
//===----------------------------------------------------------------------===//

clang/lib/Sema/SemaStmtAttr.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,6 @@ static void CheckForDuplicateLoopAttrs(Sema &S, ArrayRef<const Attr *> Attrs) {
428428
S.Diag((*FirstItr)->getLocation(), diag::note_previous_attribute);
429429
}
430430
}
431-
return;
432431
}
433432

434433
static Attr *handleMSConstexprAttr(Sema &S, Stmt *St, const ParsedAttr &A,

0 commit comments

Comments
 (0)