diff options
| author | Bill Wendling <isanbard@gmail.com> | 2010-03-14 10:40:28 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2010-03-14 10:40:28 +0000 |
| commit | ee84f275367c12acf394032736226aba13001ca2 (patch) | |
| tree | bc04086bd1aa026959c0d05a153a7c3ec0b9c838 /llvm/lib/Transforms | |
| parent | 6e52e9db31747089989267b7926a31407111e4af (diff) | |
| download | bcm5719-llvm-ee84f275367c12acf394032736226aba13001ca2.tar.gz bcm5719-llvm-ee84f275367c12acf394032736226aba13001ca2.zip | |
Make returns more consistent with others.
llvm-svn: 98490
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index f343c3811da..2ce5bdcd61d 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -1826,7 +1826,7 @@ bool SimplifyCFGOpt::run(BasicBlock *BB) { // switch. if (BasicBlock *OnlyPred = BB->getSinglePredecessor()) if (SimplifyEqualityComparisonWithOnlyPredecessor(BI, OnlyPred)) - return SimplifyCFG(BB) || 1; + return SimplifyCFG(BB) | true; // This block must be empty, except for the setcond inst, if it exists. // Ignore dbg intrinsics. @@ -1860,7 +1860,7 @@ bool SimplifyCFGOpt::run(BasicBlock *BB) { // branches to us and one of our successors, fold the setcc into the // predecessor and use logical operations to pick the right destination. if (FoldBranchToCommonDest(BI)) - return SimplifyCFG(BB) | 1; + return SimplifyCFG(BB) | true; // Scan predecessor blocks for conditional branches. |

