[PATCH] D34777: CodeGen: Fix invalid bitcast for coerced function argument

2017-06-29 Thread Yaxun Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL306721: CodeGen: Fix invalid bitcast for coerced function argument (authored by yaxunl). Changed prior to commit: https://reviews.llvm.org/D34777?vs=104505&id=104711#toc Repository: rL LLVM https://

[PATCH] D34777: CodeGen: Fix invalid bitcast for coerced function argument

2017-06-29 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. LGTM. https://reviews.llvm.org/D34777 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/

[PATCH] D34777: CodeGen: Fix invalid bitcast for coerced function argument

2017-06-28 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl created this revision. Herald added a subscriber: Anastasia. Clang assumes coerced function argument is in address space 0, which is not always true and results in invalid bitcasts. This patch fixes failure in OpenCL conformance test api/get_kernel_arg_info with amdgcn---amdgizcl triple,