[all-commits] [llvm/llvm-project] 01525d: [InstrProf] Fix build error in Correlator class
Ellis Hoag via All-commits
all-commits at lists.llvm.org
Thu Dec 16 15:59:24 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 01525da853c657f72e275395c20e31bd8a8151aa
https://github.com/llvm/llvm-project/commit/01525da853c657f72e275395c20e31bd8a8151aa
Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
Date: 2021-12-16 (Thu, 16 Dec 2021)
Changed paths:
M llvm/lib/ProfileData/InstrProfCorrelator.cpp
Log Message:
-----------
[InstrProf] Fix build error in Correlator class
For some reason this did not fail to compile for me locally, but did
fail on one of the builders. Here is the error:
https://lab.llvm.org/buildbot/#/builders/58/builds/14969
```
/home/buildbot/as-builder-4/lld-x86_64-ubuntu-fast/llvm-project/llvm/lib/ProfileData/InstrProfCorrelator.cpp: In static member function ‘static llvm::Expected<std::unique_ptr<llvm::InstrProfCorrelator::Context> > llvm::InstrProfCorrelator::Context::get(std::unique_ptr<llvm::MemoryBuffer>, const llvm::object::ObjectFile&)’:
/home/buildbot/as-builder-4/lld-x86_64-ubuntu-fast/llvm-project/llvm/lib/ProfileData/InstrProfCorrelator.cpp:44:10: error: could not convert ‘C’ from ‘std::unique_ptr<llvm::InstrProfCorrelator::Context>’ to ‘llvm::Expected<std::unique_ptr<llvm::InstrProfCorrelator::Context> >’
return C;
```
Reviewed By: kyulee
Differential Revision: https://reviews.llvm.org/D115911
More information about the All-commits
mailing list