[cuda][hip] Fix `RegisterVar` function prototype.
authorMichael Liao <michael.hliao@gmail.com>
Fri, 3 Apr 2020 14:17:06 +0000 (10:17 -0400)
committerMichael Liao <michael.hliao@gmail.com>
Fri, 3 Apr 2020 16:57:09 +0000 (12:57 -0400)
commitb952d799cacdb7efd44c1c9468bb11471cc16874
tree4362aea67d962554636284d94da9d1ef2469e343
parent30053c842ca459aedf418391f612a3de1e6a6109
[cuda][hip] Fix `RegisterVar` function prototype.

Summary:
- `RegisterVar` has `void` return type and `size_t` in its variable size
  parameter in HIP or CUDA 9.0+.

Reviewers: tra, yaxunl

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D77398
clang/include/clang/Basic/Cuda.h
clang/lib/Basic/Cuda.cpp
clang/lib/CodeGen/CGCUDANV.cpp
clang/test/CodeGenCUDA/device-stub.cu