Reference the personalities. Don't copy them into a new vector.
authorBill Wendling <isanbard@gmail.com>
Sun, 1 Aug 2010 01:34:21 +0000 (01:34 +0000)
committerBill Wendling <isanbard@gmail.com>
Sun, 1 Aug 2010 01:34:21 +0000 (01:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109966 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfException.cpp

index c87284083cdedff8e8a09724fc1c17c2bebad0e6..86a368831e0e2762fd11ac8a9abf008b45b94b5a 100644 (file)
@@ -894,7 +894,7 @@ void DwarfException::EndModule() {
   if (!shouldEmitMovesModule && !shouldEmitTableModule)
     return;
 
-  const std::vector<const Function *> Personalities = MMI->getPersonalities();
+  const std::vector<const Function*> &Personalities = MMI->getPersonalities();
 
   for (unsigned I = 0, E = Personalities.size(); I < E; ++I)
     EmitCIE(Personalities[I], I);