From: Bill Wendling Date: Thu, 23 Jun 2011 07:55:41 +0000 (+0000) Subject: Use a reference. Don't make a useless copy of the vector. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5b46e8e6b82226810d0d6440b7b5fb05e68df5e8;p=oota-llvm.git Use a reference. Don't make a useless copy of the vector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133707 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MC/MCDwarf.cpp b/lib/MC/MCDwarf.cpp index a35506bacc6..d232d84cc36 100644 --- a/lib/MC/MCDwarf.cpp +++ b/lib/MC/MCDwarf.cpp @@ -759,7 +759,7 @@ const MCSymbol &FrameEmitterImpl::EmitCIE(MCStreamer &streamer, // Initial Instructions - const std::vector Moves = asmInfo.getInitialFrameState(); + const std::vector &Moves = asmInfo.getInitialFrameState(); std::vector Instructions; for (int i = 0, n = Moves.size(); i != n; ++i) {