[llvm] r180046 - Add a missing reference on a std::vector<> out param
Reid Kleckner
reid at kleckner.net
Mon Apr 22 13:58:09 PDT 2013
Author: rnk
Date: Mon Apr 22 15:58:09 2013
New Revision: 180046
URL: http://llvm.org/viewvc/llvm-project?rev=180046&view=rev
Log:
Add a missing reference on a std::vector<> out param
Pointed out by Eli. The test passes for me either way, so I missed
this.
Modified:
llvm/trunk/unittests/Support/ProgramTest.cpp
Modified: llvm/trunk/unittests/Support/ProgramTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/ProgramTest.cpp?rev=180046&r1=180045&r2=180046&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/ProgramTest.cpp (original)
+++ llvm/trunk/unittests/Support/ProgramTest.cpp Mon Apr 22 15:58:09 2013
@@ -24,7 +24,7 @@ ProgramTestStringArg1("program-test-stri
static cl::opt<std::string>
ProgramTestStringArg2("program-test-string-arg2");
-static void CopyEnvironment(std::vector<const char *> out) {
+static void CopyEnvironment(std::vector<const char *> &out) {
// environ appears to be pretty portable.
char **envp = environ;
while (*envp != 0) {
More information about the llvm-commits
mailing list