diff --git a/llvm/unittests/Support/ProgramTest.cpp b/llvm/unittests/Support/ProgramTest.cpp index 479b6b57ec23..9dd9ccd11b7c 100755 --- a/llvm/unittests/Support/ProgramTest.cpp +++ b/llvm/unittests/Support/ProgramTest.cpp @@ -24,7 +24,7 @@ ProgramTestStringArg1("program-test-string-arg1"); static cl::opt ProgramTestStringArg2("program-test-string-arg2"); -static void CopyEnvironment(std::vector out) { +static void CopyEnvironment(std::vector &out) { // environ appears to be pretty portable. char **envp = environ; while (*envp != 0) {