[PATCH] D111734: [HIP] Relax conditions for address space cast in builtin args
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 13 09:31:01 PDT 2021
yaxunl added a comment.
we need a codegen test for the case
================
Comment at: clang/lib/Sema/SemaExpr.cpp:6550
// type to a default address space pointee type
- if (ArgAS != LangAS::Default || ParamAS == LangAS::Default)
continue;
----------------
we still need to keep this condition so it should be:
```
if ((ArgAS != LangAS::Default &&
getASTContext().getTargetAddressSpace(ArgAS) !=
getASTContext().getTargetAddressSpace(ParamAS))
|| ParamAS == LangAS::Default)
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111734/new/
https://reviews.llvm.org/D111734
More information about the cfe-commits
mailing list