[llvm-commits] [llvm] r98838 - /llvm/trunk/lib/CodeGen/RegAllocLocal.cpp
Dan Gohman
gohman at apple.com
Thu Mar 18 11:07:14 PDT 2010
Author: djg
Date: Thu Mar 18 13:07:13 2010
New Revision: 98838
URL: http://llvm.org/viewvc/llvm-project?rev=98838&view=rev
Log:
Add explicit braces to avoid ambiguous ‘else’.
Modified:
llvm/trunk/lib/CodeGen/RegAllocLocal.cpp
Modified: llvm/trunk/lib/CodeGen/RegAllocLocal.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocLocal.cpp?rev=98838&r1=98837&r2=98838&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocLocal.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocLocal.cpp Thu Mar 18 13:07:13 2010
@@ -739,7 +739,7 @@
// 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 @@
} else {
MO.setIsDead(true);
}
+ }
}
}
More information about the llvm-commits
mailing list