Skip to content

Commit 24fcc0a

Browse files
[clang] Remove redundant control flow statements (NFC)
1 parent 7b1bfb2 commit 24fcc0a

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,6 @@ computeBlockInputState(const CFGBlock &Block, AnalysisContext &AC) {
343343
}
344344
}
345345
Builder.addUnowned(*MaybePredState);
346-
continue;
347346
}
348347
return std::move(Builder).take();
349348
}

clang/lib/CodeGen/CGOpenMPRuntime.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6385,7 +6385,6 @@ static void getNumThreads(CodeGenFunction &CGF, const CapturedStmt *CS,
63856385
}
63866386
if (isOpenMPSimdDirective(Dir->getDirectiveKind()))
63876387
UpperBound = 1;
6388-
return;
63896388
}
63906389

63916390
const Expr *CGOpenMPRuntime::getNumThreadsExprForTargetDirective(
@@ -10015,8 +10014,6 @@ void CGOpenMPRuntime::registerTargetGlobalVariable(const VarDecl *VD,
1001510014

1001610015
for (auto *ref : GeneratedRefs)
1001710016
CGM.addCompilerUsedGlobal(ref);
10018-
10019-
return;
1002010017
}
1002110018

1002210019
bool CGOpenMPRuntime::emitTargetGlobal(GlobalDecl GD) {

clang/lib/Sema/SemaInit.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5672,8 +5672,6 @@ static void TryOrBuildParenListInitialization(
56725672
diag::warn_cxx17_compat_aggregate_init_paren_list)
56735673
<< Kind.getLocation() << SR << ResultType;
56745674
}
5675-
5676-
return;
56775675
}
56785676

56795677
/// Attempt a user-defined conversion between two types (C++ [dcl.init]),

0 commit comments

Comments
 (0)