aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/PreAllocSplitting.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-12-29 08:05:02 +0000
committerDuncan Sands <baldrick@free.fr>2008-12-29 08:05:02 +0000
commit2b7fc1ef53f71f06135aa7a996840073d3bc0595 (patch)
tree96b6c4997aaf6699a180c9ca976329acf364049e /lib/CodeGen/PreAllocSplitting.cpp
parent1df30c4061a6b6faaf9641f72b1741a0af4aa532 (diff)
Add braces, as suggested by a gcc warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61465 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PreAllocSplitting.cpp')
-rw-r--r--lib/CodeGen/PreAllocSplitting.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/CodeGen/PreAllocSplitting.cpp b/lib/CodeGen/PreAllocSplitting.cpp
index 3f303ae098..e984d26f4e 100644
--- a/lib/CodeGen/PreAllocSplitting.cpp
+++ b/lib/CodeGen/PreAllocSplitting.cpp
@@ -701,12 +701,13 @@ VNInfo* PreAllocSplitting::PerformPHIConstruction(
--walker;
// Must check begin() too.
- if (!found)
+ if (!found) {
if (BlockUses.count(walker))
found = true;
else
goto Fallback;
-
+ }
+
unsigned UseIndex = LIs->getInstructionIndex(walker);
UseIndex = LiveIntervals::getUseIndex(UseIndex);
unsigned EndIndex = 0;
@@ -753,14 +754,15 @@ VNInfo* PreAllocSplitting::PerformPHIConstruction(
--walker;
// Must check begin() too.
- if (!foundDef && !foundUse)
+ if (!foundDef && !foundUse) {
if (BlockDefs.count(walker))
foundDef = true;
else if (BlockUses.count(walker))
foundUse = true;
else
goto Fallback;
-
+ }
+
unsigned StartIndex = LIs->getInstructionIndex(walker);
StartIndex = foundDef ? LiveIntervals::getDefIndex(StartIndex) :
LiveIntervals::getUseIndex(StartIndex);