Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit 7cf1fef

Browse files
committed
Suppress some bitwise-or-of-bool warnings with explicit int cast
These look like they have intentional side effects that would break from shortcircuiting.
1 parent ecd25ed commit 7cf1fef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/examples/IRTransforms/SimplifyCFG.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,17 +354,17 @@ static bool mergeIntoSinglePredecessor_v2(Function &F, DominatorTree &DT) {
354354
}
355355

356356
static bool doSimplify_v1(Function &F) {
357-
return eliminateCondBranches_v1(F) | mergeIntoSinglePredecessor_v1(F) |
357+
return (int)eliminateCondBranches_v1(F) | mergeIntoSinglePredecessor_v1(F) |
358358
removeDeadBlocks_v1(F);
359359
}
360360

361361
static bool doSimplify_v2(Function &F, DominatorTree &DT) {
362-
return eliminateCondBranches_v2(F, DT) |
362+
return (int)eliminateCondBranches_v2(F, DT) |
363363
mergeIntoSinglePredecessor_v2(F, DT) | removeDeadBlocks_v2(F, DT);
364364
}
365365

366366
static bool doSimplify_v3(Function &F, DominatorTree &DT) {
367-
return eliminateCondBranches_v3(F, DT) |
367+
return (int)eliminateCondBranches_v3(F, DT) |
368368
mergeIntoSinglePredecessor_v2(F, DT) | removeDeadBlocks_v2(F, DT);
369369
}
370370

0 commit comments

Comments
 (0)