mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
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
This commit is contained in:
parent
1df30c4061
commit
2b7fc1ef53
@ -701,11 +701,12 @@ 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);
|
||||
@ -753,13 +754,14 @@ 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) :
|
||||
|
Loading…
Reference in New Issue
Block a user