diff options
author | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2023-11-20 16:06:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-20 16:06:48 -0500 |
commit | a1e2c6566305061c115954b048f2957c8d55cb5b (patch) | |
tree | b20b29bdc03b7a03a89b9149f9fec0701ef9ed10 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | f42482def236999b0f7896c09cd714b708861c8b (diff) | |
download | llvm-a1e2c6566305061c115954b048f2957c8d55cb5b.zip llvm-a1e2c6566305061c115954b048f2957c8d55cb5b.tar.gz llvm-a1e2c6566305061c115954b048f2957c8d55cb5b.tar.bz2 |
[CUDA][HIP] ignore implicit host/device attr for override (#72815)
When deciding whether a previous function declaration is an overload or
override, implicit host/device attrs should not be considered.
This fixes the failure for the following code:
`template <typename T>
class C {
explicit C() {};
};
template <> C<int>::C() {};
`
The issue was introduced by
https://github.com/llvm/llvm-project/pull/72394
sine the template specialization is treated as overload due to implicit
host/device attrs are considered for overload/override differentiation.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions