Skip to content

Commit 970516d

Browse files
[clang] Remove redundant control flow statements (NFC) (#155138)
1 parent 8483bf4 commit 970516d

File tree

4 files changed

+0
-5
lines changed

4 files changed

+0
-5
lines changed

clang/lib/CodeGen/Targets/RISCV.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,6 @@ void RISCVABIInfo::createCoercedStore(llvm::Value *Val, Address Dst,
955955
cast<llvm::FixedVectorType>(EltTy), Val, uint64_t(0));
956956
auto *I = CGF.Builder.CreateStore(Coerced, Dst, DestIsVolatile);
957957
CGF.addInstToCurrentSourceAtom(I, Val);
958-
return;
959958
}
960959

961960
namespace {

clang/lib/Driver/Driver.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4672,7 +4672,6 @@ void Driver::BuildDriverManagedModuleBuildActions(
46724672
Compilation &C, llvm::opt::DerivedArgList &Args, const InputList &Inputs,
46734673
ActionList &Actions) const {
46744674
Diags.Report(diag::remark_performing_driver_managed_module_build);
4675-
return;
46764675
}
46774676

46784677
/// Returns the canonical name for the offloading architecture when using a HIP

clang/lib/Driver/ToolChains/HLSL.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ void getSpirvExtOperand(StringRef SpvExtensionArg, raw_ostream &out) {
215215
return;
216216
}
217217
out << SpvExtensionArg;
218-
return;
219218
}
220219

221220
SmallString<1024> getSpirvExtArg(ArrayRef<std::string> SpvExtensionArgs) {

clang/unittests/Analysis/FlowSensitive/FormulaTest.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ using namespace dataflow;
2222
using ::llvm::Failed;
2323
using ::llvm::HasValue;
2424
using ::llvm::Succeeded;
25-
using ::testing::ElementsAre;
26-
using ::testing::IsEmpty;
2725

2826
class SerializeFormulaTest : public ::testing::Test {
2927
protected:

0 commit comments

Comments
 (0)