[clang] Remove redundant control flow statements (NFC) (#140359)

This commit is contained in:
Kazu Hirata
2025-05-17 12:59:47 -07:00
committed by GitHub
parent 0642bf9a98
commit f9f69dac2a
9 changed files with 0 additions and 10 deletions

View File

@@ -359,7 +359,6 @@ void RedeclarableTemplateDecl::loadLazySpecializationsImpl(
ExternalSource->LoadExternalSpecializations(this->getCanonicalDecl(),
OnlyPartial);
return;
}
bool RedeclarableTemplateDecl::loadLazySpecializationsImpl(

View File

@@ -548,7 +548,6 @@ static void EmitHLSLScalarFlatCast(CodeGenFunction &CGF, Address DestVal,
}
CGF.Builder.CreateStore(Cast, StoreGEPList[I].first);
}
return;
}
// emit a flat cast where the RHS is an aggregate

View File

@@ -1759,7 +1759,6 @@ void CGOpenMPRuntimeGPU::emitReduction(
CGF.getTarget().getGridValue(),
C.getLangOpts().OpenMPCUDAReductionBufNum, RTLoc));
CGF.Builder.restoreIP(AfterIP);
return;
}
const VarDecl *

View File

@@ -2576,8 +2576,6 @@ static void GetSDLFromOffloadArchive(
InputInfo(&JA, C.getArgs().MakeArgString(OutputLib))));
CC1Args.push_back(DriverArgs.MakeArgString(OutputLib));
return;
}
// Wrapper function used by driver for adding SDLs during link phase.

View File

@@ -750,7 +750,6 @@ void DylibVerifier::visitSymbolInDylib(const Record &R, SymbolContext &SymCtx) {
// Missing declarations are dropped for ErrorsOnly mode. It is the last
// remaining mode.
updateState(Result::Ignore);
return;
}
void DylibVerifier::visitGlobal(const GlobalRecord &R) {

View File

@@ -3982,7 +3982,6 @@ static void handleFormatMatchesAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
S.Diag(AL.getLoc(), diag::err_format_nonliteral)
<< FormatStrExpr->getSourceRange();
return;
}
/// Handle __attribute__((callback(CalleeIdx, PayloadIdx0, ...))) attributes.

View File

@@ -1639,7 +1639,6 @@ static void CheckUnicodeArithmeticConversions(Sema &SemaRef, Expr *LHS,
SemaRef.Diag(Loc, diag::warn_arith_conv_mixed_unicode_types)
<< LHS->getSourceRange() << RHS->getSourceRange() << ACK << LHSType
<< RHSType;
return;
}
/// UsualArithmeticConversions - Performs various conversions that are common to

View File

@@ -9853,7 +9853,6 @@ static void CheckC23ConstexprInitStringLiteral(const StringLiteral *SE,
return;
}
}
return;
}
//===----------------------------------------------------------------------===//

View File

@@ -428,7 +428,6 @@ static void CheckForDuplicateLoopAttrs(Sema &S, ArrayRef<const Attr *> Attrs) {
S.Diag((*FirstItr)->getLocation(), diag::note_previous_attribute);
}
}
return;
}
static Attr *handleMSConstexprAttr(Sema &S, Stmt *St, const ParsedAttr &A,