diff options
| author | Malcolm Parsons <malcolm.parsons@gmail.com> | 2016-11-02 10:39:27 +0000 |
|---|---|---|
| committer | Malcolm Parsons <malcolm.parsons@gmail.com> | 2016-11-02 10:39:27 +0000 |
| commit | f76f6507c2359b0e2b1d6a2cc2305bf69932e4b8 (patch) | |
| tree | 1ad0fc11d9a2a1573da6c1ca02c8a24a8a3760a5 /clang/lib/Driver/Job.cpp | |
| parent | eaa419cf5e87a164d6a5b43f8f1bc7530c70c977 (diff) | |
| download | bcm5719-llvm-f76f6507c2359b0e2b1d6a2cc2305bf69932e4b8.tar.gz bcm5719-llvm-f76f6507c2359b0e2b1d6a2cc2305bf69932e4b8.zip | |
Fix Clang-tidy readability-redundant-string-cstr warnings
Reviewers: aaron.ballman, mehdi_amini, dblaikie
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D26206
llvm-svn: 285799
Diffstat (limited to 'clang/lib/Driver/Job.cpp')
| -rw-r--r-- | clang/lib/Driver/Job.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Driver/Job.cpp b/clang/lib/Driver/Job.cpp index 97aaf3e703e..a8f585e82d2 100644 --- a/clang/lib/Driver/Job.cpp +++ b/clang/lib/Driver/Job.cpp @@ -182,7 +182,7 @@ void Command::Print(raw_ostream &OS, const char *Terminator, bool Quote, // Replace the input file name with the crashinfo's file name. OS << ' '; StringRef ShortName = llvm::sys::path::filename(CrashInfo->Filename); - printArg(OS, ShortName.str().c_str(), Quote); + printArg(OS, ShortName.str(), Quote); continue; } } @@ -195,7 +195,7 @@ void Command::Print(raw_ostream &OS, const char *Terminator, bool Quote, OS << ' '; printArg(OS, "-ivfsoverlay", Quote); OS << ' '; - printArg(OS, CrashInfo->VFSPath.str().c_str(), Quote); + printArg(OS, CrashInfo->VFSPath.str(), Quote); // Insert -fmodules-cache-path and use the relative module directory // <name>.cache/vfs/modules where we already dumped the modules. @@ -207,7 +207,7 @@ void Command::Print(raw_ostream &OS, const char *Terminator, bool Quote, ModCachePath.append(RelModCacheDir.c_str()); OS << ' '; - printArg(OS, ModCachePath.c_str(), Quote); + printArg(OS, ModCachePath, Quote); } if (ResponseFile != nullptr) { |

