[BOLT][NFC] Format braced initializer lists

Summary:
Use assignment (`=`) with braced initializer lists when constructing
aggregate temporaries in expressions.

https://llvm.org/docs/CodingStandards.html#braced-initializer-lists

(cherry picked from FBD33515669)
This commit is contained in:
Amir Ayupov 2022-01-10 12:45:55 -08:00 committed by Maksim Panchenko
parent 8aab58ba65
commit b1a107db56
2 changed files with 3 additions and 3 deletions

View File

@ -87,10 +87,10 @@ private:
MCSymbol *Label{nullptr};
/// [Begin, End) address range for this block in the output binary.
std::pair<uint32_t, uint32_t> OutputAddressRange{0, 0};
std::pair<uint32_t, uint32_t> OutputAddressRange = {0, 0};
/// Original offset range of the basic block in the function.
std::pair<uint32_t, uint32_t> InputRange{INVALID_OFFSET, INVALID_OFFSET};
std::pair<uint32_t, uint32_t> InputRange = {INVALID_OFFSET, INVALID_OFFSET};
/// Map input offset (from function start) of an instruction to an output
/// symbol. Enables writing BOLT address translation tables used for mapping

View File

@ -746,7 +746,7 @@ uint64_t fixDoubleJumps(BinaryFunction &Function, bool MarkInvalid) {
if (((!Succ || &BB == Succ) && !IsTailCall) || (IsTailCall && !SuccSym))
continue;
std::vector<BinaryBasicBlock *> Preds{BB.pred_begin(), BB.pred_end()};
std::vector<BinaryBasicBlock *> Preds = {BB.pred_begin(), BB.pred_end()};
for (BinaryBasicBlock *Pred : Preds) {
if (Pred->isLandingPad())