From 5b46e8e6b82226810d0d6440b7b5fb05e68df5e8 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 23 Jun 2011 07:55:41 +0000 Subject: [PATCH] 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 --- lib/MC/MCDwarf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.34.1