[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
Loading
Please sign in to comment