From: Bill Wendling Date: Tue, 7 Feb 2012 09:05:34 +0000 (+0000) Subject: Reserve a moderate amount of space for the back-end arguments. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9085030171299809be4076f0ceb5b6e8add908da;p=clang Reserve a moderate amount of space for the back-end arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149973 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/BackendUtil.cpp b/lib/CodeGen/BackendUtil.cpp index 1cbc69b03b..1707ec5ea5 100644 --- a/lib/CodeGen/BackendUtil.cpp +++ b/lib/CodeGen/BackendUtil.cpp @@ -247,6 +247,7 @@ bool EmitAssemblyHelper::AddEmitPasses(BackendAction Action, } std::vector BackendArgs; + BackendArgs.reserve(16); BackendArgs.push_back("clang"); // Fake program name. if (!CodeGenOpts.DebugPass.empty()) { BackendArgs.push_back("-debug-pass");