[clang] Remove redundant control flow statements (NFC) (#140359)
This commit is contained in:
@@ -359,7 +359,6 @@ void RedeclarableTemplateDecl::loadLazySpecializationsImpl(
|
||||
|
||||
ExternalSource->LoadExternalSpecializations(this->getCanonicalDecl(),
|
||||
OnlyPartial);
|
||||
return;
|
||||
}
|
||||
|
||||
bool RedeclarableTemplateDecl::loadLazySpecializationsImpl(
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1759,7 +1759,6 @@ void CGOpenMPRuntimeGPU::emitReduction(
|
||||
CGF.getTarget().getGridValue(),
|
||||
C.getLangOpts().OpenMPCUDAReductionBufNum, RTLoc));
|
||||
CGF.Builder.restoreIP(AfterIP);
|
||||
return;
|
||||
}
|
||||
|
||||
const VarDecl *
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -9853,7 +9853,6 @@ static void CheckC23ConstexprInitStringLiteral(const StringLiteral *SE,
|
||||
return;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user