HomePhabricator

[cuda][hip] Fix `RegisterVar` function prototype.

Authored by hliao on Apr 3 2020, 7:17 AM.

Description

[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