diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-05-29 11:04:56 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-05-29 11:04:56 +0000 |
commit | d9d25f2c2740d67d3b6d4106d397ebffb0759d80 (patch) | |
tree | 2ace6b8c42eadc01590c75f5c1bc2a4dc06632ba /lib/Frontend/CompilerInvocation.cpp | |
parent | bf5d8ed83ad708a44bdc3611b201c5f025a95df2 (diff) | |
download | clang-d9d25f2c2740d67d3b6d4106d397ebffb0759d80.tar.gz |
Avoid unnecessary std::string copies. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@271182 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 4bb08c8a81..42ce6df132 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -400,7 +400,7 @@ static void setPGOInstrumentor(CodeGenOptions &Opts, ArgList &Args, // Set the profile kind using fprofile-instrument-use-path. static void setPGOUseInstrumentor(CodeGenOptions &Opts, - const std::string ProfileName) { + const Twine &ProfileName) { auto ReaderOrErr = llvm::IndexedInstrProfReader::create(ProfileName); // In error, return silently and let Clang PGOUse report the error message. if (auto E = ReaderOrErr.takeError()) { |