diff options
author | Dan Gohman <gohman@apple.com> | 2010-03-18 18:07:13 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-03-18 18:07:13 +0000 |
commit | 35922008a8512a972ab3dfca0cf8aa00197dc1b5 (patch) | |
tree | dd24aff2793c9472b31d72cd93aebaf7fb50587b /lib/CodeGen/RegAllocLocal.cpp | |
parent | 196539045092e8f4e43c3a730771f8369a55bbc5 (diff) | |
download | external_llvm-35922008a8512a972ab3dfca0cf8aa00197dc1b5.zip external_llvm-35922008a8512a972ab3dfca0cf8aa00197dc1b5.tar.gz external_llvm-35922008a8512a972ab3dfca0cf8aa00197dc1b5.tar.bz2 |
Add explicit braces to avoid ambiguous ‘else’.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98838 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLocal.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocLocal.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocLocal.cpp b/lib/CodeGen/RegAllocLocal.cpp index 194fc14..2c69065 100644 --- a/lib/CodeGen/RegAllocLocal.cpp +++ b/lib/CodeGen/RegAllocLocal.cpp @@ -739,7 +739,7 @@ void RALocal::ComputeLocalLiveness(MachineBasicBlock& MBB) { // Physical registers and those that are not live-out of the block are // killed/dead at their last use/def within this block. - if (isPhysReg || !usedOutsideBlock || BBEndsInReturn) + if (isPhysReg || !usedOutsideBlock || BBEndsInReturn) { if (MO.isUse()) { // Don't mark uses that are tied to defs as kills. if (!MI->isRegTiedToDefOperand(idx)) @@ -747,6 +747,7 @@ void RALocal::ComputeLocalLiveness(MachineBasicBlock& MBB) { } else { MO.setIsDead(true); } + } } } |