[clang] cleanup 20250823 ret clang (PR #155138)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 23 20:28:07 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-codegen
@llvm/pr-subscribers-clang
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
- **[clang] Remove redundant control flow statements (NFC)**
- **[FLowSensitive] Remove unused using decls (NFC)**
---
Full diff: https://github.com/llvm/llvm-project/pull/155138.diff
4 Files Affected:
- (modified) clang/lib/CodeGen/Targets/RISCV.cpp (-1)
- (modified) clang/lib/Driver/Driver.cpp (-1)
- (modified) clang/lib/Driver/ToolChains/HLSL.cpp (-1)
- (modified) clang/unittests/Analysis/FlowSensitive/FormulaTest.cpp (-2)
``````````diff
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:
``````````
</details>
https://github.com/llvm/llvm-project/pull/155138
More information about the cfe-commits
mailing list