Localizer - fix "variable used but never read" analyzer warning. NFCI.

Simplify the code by separating the modification of the Changed variable from returning it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372583 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Simon Pilgrim 2019-09-23 11:38:10 +00:00
parent fed25f49be
commit 6ec2ed215c

View File

@ -220,5 +220,6 @@ bool Localizer::runOnMachineFunction(MachineFunction &MF) {
LocalizedSetVecT LocalizedInstrs;
bool Changed = localizeInterBlock(MF, LocalizedInstrs);
return Changed |= localizeIntraBlock(LocalizedInstrs);
Changed |= localizeIntraBlock(LocalizedInstrs);
return Changed;
}