Author: Kazu Hirata Date: 2025-08-23T22:20:22-07:00 New Revision: 970516de2e3e92bb75324852648d8f027bbac893
URL: https://github.com/llvm/llvm-project/commit/970516de2e3e92bb75324852648d8f027bbac893 DIFF: https://github.com/llvm/llvm-project/commit/970516de2e3e92bb75324852648d8f027bbac893.diff LOG: [clang] Remove redundant control flow statements (NFC) (#155138) Added: Modified: clang/lib/CodeGen/Targets/RISCV.cpp clang/lib/Driver/Driver.cpp clang/lib/Driver/ToolChains/HLSL.cpp clang/unittests/Analysis/FlowSensitive/FormulaTest.cpp Removed: ################################################################################ diff --git a/clang/lib/CodeGen/Targets/RISCV.cpp b/clang/lib/CodeGen/Targets/RISCV.cpp index cbb0255fdb03a..264595a6e4b76 100644 --- a/clang/lib/CodeGen/Targets/RISCV.cpp +++ b/clang/lib/CodeGen/Targets/RISCV.cpp @@ -955,7 +955,6 @@ void RISCVABIInfo::createCoercedStore(llvm::Value *Val, Address Dst, cast<llvm::FixedVectorType>(EltTy), Val, uint64_t(0)); auto *I = CGF.Builder.CreateStore(Coerced, Dst, DestIsVolatile); CGF.addInstToCurrentSourceAtom(I, Val); - return; } namespace { diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index d682ffc832c83..34eaad43d6f79 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -4672,7 +4672,6 @@ void Driver::BuildDriverManagedModuleBuildActions( Compilation &C, llvm::opt::DerivedArgList &Args, const InputList &Inputs, ActionList &Actions) const { Diags.Report(diag::remark_performing_driver_managed_module_build); - return; } /// Returns the canonical name for the offloading architecture when using a HIP diff --git a/clang/lib/Driver/ToolChains/HLSL.cpp b/clang/lib/Driver/ToolChains/HLSL.cpp index 4fedb5dd0ac40..eaa7d736719b5 100644 --- a/clang/lib/Driver/ToolChains/HLSL.cpp +++ b/clang/lib/Driver/ToolChains/HLSL.cpp @@ -215,7 +215,6 @@ void getSpirvExtOperand(StringRef SpvExtensionArg, raw_ostream &out) { return; } out << SpvExtensionArg; - return; } SmallString<1024> getSpirvExtArg(ArrayRef<std::string> SpvExtensionArgs) { diff --git a/clang/unittests/Analysis/FlowSensitive/FormulaTest.cpp b/clang/unittests/Analysis/FlowSensitive/FormulaTest.cpp index cabcd59fffedc..db9c02854c7fa 100644 --- a/clang/unittests/Analysis/FlowSensitive/FormulaTest.cpp +++ b/clang/unittests/Analysis/FlowSensitive/FormulaTest.cpp @@ -22,8 +22,6 @@ using namespace dataflow; using ::llvm::Failed; using ::llvm::HasValue; using ::llvm::Succeeded; -using ::testing::ElementsAre; -using ::testing::IsEmpty; class SerializeFormulaTest : public ::testing::Test { protected: _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits