Skip to content

Commit a470ffa

Browse files
jurahulgithub-actions[bot]
authored andcommitted
Automerge: [NFC][LLVM] Namespace cleanup in GuardWidening (#163585)
2 parents b79a232 + d2b27ca commit a470ffa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/Scalar/GuardWidening.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ static cl::opt<bool>
7575
"expressed as branches by widenable conditions"),
7676
cl::init(true));
7777

78-
namespace {
79-
8078
// Get the condition of \p I. It can either be a guard or a conditional branch.
8179
static Value *getCondition(Instruction *I) {
8280
if (IntrinsicInst *GI = dyn_cast<IntrinsicInst>(I)) {
@@ -130,6 +128,8 @@ findInsertionPointForWideCondition(Instruction *WCOrGuard) {
130128
return std::nullopt;
131129
}
132130

131+
namespace {
132+
133133
class GuardWideningImpl {
134134
DominatorTree &DT;
135135
PostDominatorTree *PDT;
@@ -328,7 +328,7 @@ class GuardWideningImpl {
328328
/// The entry point for this pass.
329329
bool run();
330330
};
331-
}
331+
} // namespace
332332

333333
static bool isSupportedGuardInstruction(const Instruction *Insn) {
334334
if (isGuard(Insn))

0 commit comments

Comments
 (0)