diff options
author | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2023-09-07 23:18:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-07 23:18:30 -0400 |
commit | 9b7763821aedc282059309c640f69a735b4f5760 (patch) | |
tree | 223705603e0297b67b8e174623ef8d78d7c78003 /.gitignore | |
parent | 4d2536c82fc426f0e622a09c0a3e048a0c734f3d (diff) | |
download | llvm-9b7763821aedc282059309c640f69a735b4f5760.zip llvm-9b7763821aedc282059309c640f69a735b4f5760.tar.gz llvm-9b7763821aedc282059309c640f69a735b4f5760.tar.bz2 |
Reland "[CUDA][HIP] Fix overloading resolution in global var init" (#65606)
https://reviews.llvm.org/D158247 caused regressions for HIP on Windows
and was reverted.
A reduced test case is:
```
typedef void (__stdcall* funcTy)();
void invoke(funcTy f);
static void __stdcall callee() noexcept {
}
void foo() {
invoke(callee);
}
```
It is due to clang missing handling host/device attributes for calling
convention at a few places
This patch fixes that.
Diffstat (limited to '.gitignore')
-rw-r--r-- | .gitignore | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -70,3 +70,4 @@ pythonenv* /clang/utils/analyzer/projects/*/RefScanBuildResults # automodapi puts generated documentation files here. /lldb/docs/python_api/ +/Debug/ |