[NFC] Fix builds on recent GCC with C++20 enabled
authorAlexander Batashev <alexbatashev@gmail.com>
Tue, 18 Jul 2023 16:43:36 +0000 (19:43 +0300)
committerAlexander Batashev <alexbatashev@outlook.com>
Tue, 18 Jul 2023 16:44:06 +0000 (19:44 +0300)
commit17508cbcc628ad45012660362bd1ace81da85f3b
tree06b2a48a64038d591e39d273ff5ceb68641b29c3
parente6b98b7eff28de52927fb2ce7030e97ac363e1c0
[NFC] Fix builds on recent GCC with C++20 enabled

The following pattern fails on recent GCC versions with -std=c++20 flag passed
and succeeds with -std=c++17. Such behavior is not observed on Clang 16.0.

```c++
template <typename T>
struct Foo {
    Foo<T>(int a) {}
};
```

This patch removes template parameter from constructor in two occurences to
make the following command complete successfully:
bazel build -c fastbuild --cxxopt=-std=c++20 --host_cxxopt=-std=c++20 @llvm-project//llvm/...

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D154782
llvm/include/llvm/CodeGen/ByteProvider.h
llvm/lib/Transforms/IPO/AttributorAttributes.cpp