Add braces, as suggested by a gcc warning.
authorDuncan Sands <baldrick@free.fr>
Mon, 29 Dec 2008 08:05:02 +0000 (08:05 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 29 Dec 2008 08:05:02 +0000 (08:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61465 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/PreAllocSplitting.cpp

index 3f303ae098951705085074c13cd22733b3fe73a7..e984d26f4ef601598b9a8171a05baefdbf034a42 100644 (file)
@@ -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);