diff options
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp index 33c6341..8bc288f 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp @@ -343,9 +343,9 @@ void FunctionLoweringInfo::set(const Function &fn, MachineFunction &mf, for (auto &KV : EHInfo.UnwindDestToSrcs) { const auto *Dest = cast<const BasicBlock *>(KV.first); MachineBasicBlock *DestMBB = getMBB(Dest); - UnwindDestToSrcs[DestMBB] = SmallPtrSet<BBOrMBB, 4>(); + auto &Srcs = UnwindDestToSrcs[DestMBB]; for (const auto P : KV.second) - UnwindDestToSrcs[DestMBB].insert(getMBB(cast<const BasicBlock *>(P))); + Srcs.insert(getMBB(cast<const BasicBlock *>(P))); } EHInfo.UnwindDestToSrcs = std::move(UnwindDestToSrcs); } |