diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-08-30 16:55:52 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-08-30 16:55:52 +0000 |
commit | bf3e32705a0985dd41121a0486a2870200cbaaee (patch) | |
tree | 072a15f86aed310fc71bf1f7a3e3459fcfea9073 /clang/lib/Driver/Compilation.cpp | |
parent | 8c2a2a0f827eb1adfa84d33d324096f86192d71c (diff) | |
download | bcm5719-llvm-bf3e32705a0985dd41121a0486a2870200cbaaee.tar.gz bcm5719-llvm-bf3e32705a0985dd41121a0486a2870200cbaaee.zip |
Fix some cases where StringRef was being passed by const reference. Remove const from some other StringRefs since its implicitly const already.
llvm-svn: 216825
Diffstat (limited to 'clang/lib/Driver/Compilation.cpp')
-rw-r--r-- | clang/lib/Driver/Compilation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Driver/Compilation.cpp b/clang/lib/Driver/Compilation.cpp index 06972854733..a14b8894d20 100644 --- a/clang/lib/Driver/Compilation.cpp +++ b/clang/lib/Driver/Compilation.cpp @@ -233,8 +233,8 @@ void Compilation::initCompilationForDiagnostics() { // Redirect stdout/stderr to /dev/null. Redirects = new const StringRef*[3](); Redirects[0] = nullptr; - Redirects[1] = new const StringRef(); - Redirects[2] = new const StringRef(); + Redirects[1] = new StringRef(); + Redirects[2] = new StringRef(); } StringRef Compilation::getSysRoot() const { |