We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfa0947 commit 725014dCopy full SHA for 725014d
bolt/lib/Core/BinaryFunction.cpp
@@ -3252,12 +3252,9 @@ bool BinaryFunction::validateCFG() const {
3252
if (CurrentState == State::CFG_Finalized)
3253
return true;
3254
3255
- bool Valid = true;
3256
for (BinaryBasicBlock *BB : BasicBlocks)
3257
- Valid &= BB->validateSuccessorInvariants();
3258
-
3259
- if (!Valid)
3260
- return Valid;
+ if (!BB->validateSuccessorInvariants())
+ return false;
3261
3262
// Make sure all blocks in CFG are valid.
3263
auto validateBlock = [this](const BinaryBasicBlock *BB, StringRef Desc) {
@@ -3326,7 +3323,7 @@ bool BinaryFunction::validateCFG() const {
3326
3323
}
3327
3324
3328
3325
3329
+ return true;
3330
3331
3332
void BinaryFunction::fixBranches() {
0 commit comments