diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2016-05-14 05:39:45 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2016-05-14 05:39:45 +0000 |
commit | 1b766d09d19ad87fa24cabd6d738d20903ed697d (patch) | |
tree | 223ad456ac9d53db1a5213d28f5b41d3c6350eeb /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 66862c2797ab9067cfa362968a1bf22c9c67475a (diff) | |
download | bcm5719-llvm-1b766d09d19ad87fa24cabd6d738d20903ed697d.tar.gz bcm5719-llvm-1b766d09d19ad87fa24cabd6d738d20903ed697d.zip |
Revert "Reapply "[ProfileData] (clang) Use Error in InstrProf and Coverage, NFC""
This reverts commit r269492 as the corresponding LLVM commit was
reverted due to lots of warnings. See the review thread for the original
LLVM commit (r269491) for details.
llvm-svn: 269549
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 20b66906d56..8e93ff1a4b4 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -403,8 +403,7 @@ static void setPGOUseInstrumentor(CodeGenOptions &Opts, const std::string ProfileName) { auto ReaderOrErr = llvm::IndexedInstrProfReader::create(ProfileName); // In error, return silently and let Clang PGOUse report the error message. - if (auto E = ReaderOrErr.takeError()) { - llvm::consumeError(std::move(E)); + if (ReaderOrErr.getError()) { Opts.setProfileUse(CodeGenOptions::ProfileClangInstr); return; } |