Skip to content

Commit 23d62c8

Browse files
committed
fix code to meet llvm codestyle
1 parent 28d7301 commit 23d62c8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/Transforms/Utils/CodeExtractor.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -639,12 +639,10 @@ bool CodeExtractor::isEligible() const {
639639
bool IsRestore = II->getIntrinsicID() == Intrinsic::stackrestore;
640640
if (IsSave && any_of(II->users(), [&Blks = this->Blocks](User *U) {
641641
return !definedInRegion(Blks, U);
642-
})) {
642+
}))
643643
return false;
644-
}
645-
if (IsRestore && !definedInRegion(Blocks, II->getArgOperand(0))) {
644+
if (IsRestore && !definedInRegion(Blocks, II->getArgOperand(0)))
646645
return false;
647-
}
648646
}
649647
}
650648
return true;

0 commit comments

Comments
 (0)