[BOLT][NFC] Fix braces usage in Profile
Summary: Refactor bolt/*/Profile to follow the braces rule for if/else/loop from [LLVM Coding Standards](https://llvm.org/docs/CodingStandards.html). (cherry picked from FBD33345741)
This commit is contained in:
committed by
Maksim Panchenko
parent
89ceb77997
commit
def464aaae
@@ -230,9 +230,8 @@ BoltAddressTranslation::getFallthroughsInTrace(const BinaryFunction &Func,
|
||||
To -= Func.getAddress();
|
||||
|
||||
auto Iter = Maps.find(Func.getAddress());
|
||||
if (Iter == Maps.end()) {
|
||||
if (Iter == Maps.end())
|
||||
return NoneType();
|
||||
}
|
||||
|
||||
const MapTy &Map = Iter->second;
|
||||
auto FromIter = Map.upper_bound(From);
|
||||
@@ -261,9 +260,8 @@ BoltAddressTranslation::getFallthroughsInTrace(const BinaryFunction &Func,
|
||||
}
|
||||
|
||||
++Iter;
|
||||
while (Iter->second & BRANCHENTRY && Iter != ToIter) {
|
||||
while (Iter->second & BRANCHENTRY && Iter != ToIter)
|
||||
++Iter;
|
||||
}
|
||||
if (Iter->second & BRANCHENTRY)
|
||||
break;
|
||||
Res.emplace_back(Src, Iter->first);
|
||||
|
||||
Reference in New Issue
Block a user