mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
auto [...] -> auto &&[...]
This commit is contained in:
@@ -190,7 +190,7 @@ void ControlFlowGraph::simplify(const model::Binary &Binary) {
|
||||
ToMerge.emplace_back(Block.ID(), Block.nextBlock());
|
||||
}
|
||||
|
||||
for (auto [PredecessorAddress, BlockAddress] : llvm::reverse(ToMerge)) {
|
||||
for (auto &&[PredecessorAddress, BlockAddress] : llvm::reverse(ToMerge)) {
|
||||
efa::BasicBlock &Predecessor = Blocks().at(PredecessorAddress);
|
||||
efa::BasicBlock &Block = Blocks().at(BlockAddress);
|
||||
|
||||
@@ -294,7 +294,7 @@ bool ControlFlowGraph::verify(const model::Binary &Binary,
|
||||
}
|
||||
|
||||
void ControlFlowGraph::dumpCFG(const model::Binary &Binary) const {
|
||||
auto [G, _] = buildControlFlowGraph<FunctionCFG>(Blocks(), Entry(), Binary);
|
||||
auto &&[G, _] = buildControlFlowGraph<FunctionCFG>(Blocks(), Entry(), Binary);
|
||||
WriteGraph(&G, "function-metadata");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user