diff options
| author | Ruslan Arutyunyan <ruslan.arutyunyan@intel.com> | 2021-11-26 16:37:31 +0300 |
|---|---|---|
| committer | Ruslan Arutyunyan <ruslan.arutyunyan@intel.com> | 2021-11-26 17:29:08 +0300 |
| commit | f824bb0e36fc7099923f583e4eea4aaa7d296957 (patch) | |
| tree | cbc2fd43c5d02a96b1b98349f872093add1b9a8d /llvm/tools/llvm-cov/CodeCoverage.cpp | |
| parent | 30238c3676d306ad1c6533805ab72c16f4723ab5 (diff) | |
| download | llvm-f824bb0e36fc7099923f583e4eea4aaa7d296957.zip llvm-f824bb0e36fc7099923f583e4eea4aaa7d296957.tar.gz llvm-f824bb0e36fc7099923f583e4eea4aaa7d296957.tar.bz2 | |
[pstl] Fix incorrect usage of std::invoke_result
std::invoke_result takes function object type and arguments separately
(unlike std::result_of) so, std::invoke_result_t<F()> usage is
incorrect.
On the other hand, we don't need std::invoke() semantics here at all. So
just simplifying the code without extra dependency and use trailing
return type as the fix.
Reviewed By: MikeDvorskiy
Differential Revision: https://reviews.llvm.org/D114624
Diffstat (limited to 'llvm/tools/llvm-cov/CodeCoverage.cpp')
0 files changed, 0 insertions, 0 deletions
