diff options
author | Duncan Sands <baldrick@free.fr> | 2008-12-29 08:05:02 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-12-29 08:05:02 +0000 |
commit | 43b18241ff32904698fb91bc798d4be3b893fa63 (patch) | |
tree | aadec2948808c596403a09d2406f574d0ff9ea6a /llvm/lib/CodeGen | |
parent | b8ee30de6dd27744d55862f2d8118c6cb09b886b (diff) | |
download | bcm5719-llvm-43b18241ff32904698fb91bc798d4be3b893fa63.tar.gz bcm5719-llvm-43b18241ff32904698fb91bc798d4be3b893fa63.zip |
Add braces, as suggested by a gcc warning.
llvm-svn: 61465
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/PreAllocSplitting.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/PreAllocSplitting.cpp b/llvm/lib/CodeGen/PreAllocSplitting.cpp index 3f303ae0989..e984d26f4ef 100644 --- a/llvm/lib/CodeGen/PreAllocSplitting.cpp +++ b/llvm/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); |