Skip to content

Commit d990054

Browse files
committed
Reference the personalities. Don't copy them into a new vector.
llvm-svn: 109966
1 parent a755f0f commit d990054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ void DwarfException::EndModule() {
894894
if (!shouldEmitMovesModule && !shouldEmitTableModule)
895895
return;
896896

897-
const std::vector<const Function *> Personalities = MMI->getPersonalities();
897+
const std::vector<const Function*> &Personalities = MMI->getPersonalities();
898898

899899
for (unsigned I = 0, E = Personalities.size(); I < E; ++I)
900900
EmitCIE(Personalities[I], I);

0 commit comments

Comments
 (0)