[clang] 24fcc0a - [clang] Remove redundant control flow statements (NFC)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 27 12:13:34 PDT 2023
Author: Kazu Hirata
Date: 2023-08-27T12:13:25-07:00
New Revision: 24fcc0a7c56f01246f89aa5a5cd7af568eab8152
URL: https://github.com/llvm/llvm-project/commit/24fcc0a7c56f01246f89aa5a5cd7af568eab8152
DIFF: https://github.com/llvm/llvm-project/commit/24fcc0a7c56f01246f89aa5a5cd7af568eab8152.diff
LOG: [clang] Remove redundant control flow statements (NFC)
Added:
Modified:
clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/lib/Sema/SemaInit.cpp
Removed:
################################################################################
diff --git a/clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp b/clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp
index e37d86cb6ba4ee..ae108a702c86aa 100644
--- a/clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp
+++ b/clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp
@@ -343,7 +343,6 @@ computeBlockInputState(const CFGBlock &Block, AnalysisContext &AC) {
}
}
Builder.addUnowned(*MaybePredState);
- continue;
}
return std::move(Builder).take();
}
diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
index 253ef8b75163ec..ac04b838602345 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -6385,7 +6385,6 @@ static void getNumThreads(CodeGenFunction &CGF, const CapturedStmt *CS,
}
if (isOpenMPSimdDirective(Dir->getDirectiveKind()))
UpperBound = 1;
- return;
}
const Expr *CGOpenMPRuntime::getNumThreadsExprForTargetDirective(
@@ -10015,8 +10014,6 @@ void CGOpenMPRuntime::registerTargetGlobalVariable(const VarDecl *VD,
for (auto *ref : GeneratedRefs)
CGM.addCompilerUsedGlobal(ref);
-
- return;
}
bool CGOpenMPRuntime::emitTargetGlobal(GlobalDecl GD) {
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp
index d915d06ab2f1b8..93f05e2e47285e 100644
--- a/clang/lib/Sema/SemaInit.cpp
+++ b/clang/lib/Sema/SemaInit.cpp
@@ -5672,8 +5672,6 @@ static void TryOrBuildParenListInitialization(
diag::warn_cxx17_compat_aggregate_init_paren_list)
<< Kind.getLocation() << SR << ResultType;
}
-
- return;
}
/// Attempt a user-defined conversion between two types (C++ [dcl.init]),
More information about the cfe-commits
mailing list