From: Bill Wendling Date: Sun, 1 Aug 2010 01:34:21 +0000 (+0000) Subject: Reference the personalities. Don't copy them into a new vector. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=57dba1cf53c87709cbb2839809f6cfa897fac047;p=oota-llvm.git Reference the personalities. Don't copy them into a new vector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109966 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp index c87284083cd..86a368831e0 100644 --- a/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -894,7 +894,7 @@ void DwarfException::EndModule() { if (!shouldEmitMovesModule && !shouldEmitTableModule) return; - const std::vector Personalities = MMI->getPersonalities(); + const std::vector &Personalities = MMI->getPersonalities(); for (unsigned I = 0, E = Personalities.size(); I < E; ++I) EmitCIE(Personalities[I], I);