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/Frontend/CompilerInvocation.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/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index ff22ed8e072..86a3c87ed5c 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1469,7 +1469,7 @@ static void ParseHeaderSearchArgs(HeaderSearchOptions &Opts, ArgList &Args) { Path = Buffer.str(); } - Opts.AddPath(Path.c_str(), Group, IsFramework, + Opts.AddPath(Path, Group, IsFramework, /*IgnoreSysroot*/ true); IsIndexHeaderMap = false; } |