diff options
author | Vedant Kumar <vsk@apple.com> | 2016-05-16 21:04:19 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-05-16 21:04:19 +0000 |
commit | da9513fc3ca4e942951c0dafdffc2b3a4a52a084 (patch) | |
tree | 91b83169f6f0ca5bb1747c72a693ffa2393a9dbb /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 85c973d3f06b86b099be39d3ac2dcb6b8c744955 (diff) | |
download | llvm-da9513fc3ca4e942951c0dafdffc2b3a4a52a084.zip llvm-da9513fc3ca4e942951c0dafdffc2b3a4a52a084.tar.gz llvm-da9513fc3ca4e942951c0dafdffc2b3a4a52a084.tar.bz2 |
Revert "Reapply^2 "[ProfileData] (clang) Use Error in InstrProf and Coverage, NFC""
This reverts commit r269695. The llvm commit does not pass the MSVC bot.
llvm-svn: 269701
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 20b66906..8e93ff1 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; } |