This is an archive of the discontinued LLVM Phabricator instance.

CodeGen: Fix invalid bitcast for coerced function argument
ClosedPublic

Authored by yaxunl on Jun 28 2017, 2:06 PM.

Details

Summary

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, where non-zero alloca address space is used.

Diff Detail

Repository
rL LLVM

Event Timeline

yaxunl created this revision.Jun 28 2017, 2:06 PM
This revision is now accepted and ready to land.Jun 29 2017, 10:57 AM
This revision was automatically updated to reflect the committed changes.