[all-commits] [llvm/llvm-project] 54b54d: [OpenMP] Fix compile error caused by #74397 (#75419)

Shilei Tian via All-commits all-commits at lists.llvm.org
Fri Dec 15 05:16:06 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 54b54d63caa8b672cbc97fe291ad1b4e4f5895a6
      https://github.com/llvm/llvm-project/commit/54b54d63caa8b672cbc97fe291ad1b4e4f5895a6
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2023-12-15 (Fri, 15 Dec 2023)

  Changed paths:
    M openmp/libomptarget/src/PluginManager.cpp

  Log Message:
  -----------
  [OpenMP] Fix compile error caused by #74397 (#75419)

This patch fixed the following compile error caused by #74397.

```
openmp/libomptarget/src/PluginManager.cpp: In static member function ‘static llvm::Expected<std::unique_ptr<PluginAdaptorTy> >
PluginAdaptorTy::create(const string&)’:
openmp/libomptarget/src/PluginManager.cpp:50:10: error: could not convert ‘PluginAdaptor’ from ‘std::unique_ptr<PluginAdaptorTy
>’ to ‘llvm::Expected<std::unique_ptr<PluginAdaptorTy> >’
   return PluginAdaptor;                                                                                                                                                                    ^~~~~~~~~~~~~
```




More information about the All-commits mailing list