commit | 2bd22dfce737d1731a4c9df6a1a424ef57bed0c5 | [log] [tgz] |
---|---|---|
author | Yaxun Liu <Yaxun.Liu@amd.com> | Mon Oct 30 21:19:41 2017 +0000 |
committer | Yaxun Liu <Yaxun.Liu@amd.com> | Mon Oct 30 21:19:41 2017 +0000 |
tree | 719db42b512a388890647f758b15719dcb86f503 | |
parent | 228b83b879ad73ff37c3a4a8678c92a72c877031 [diff] |
InferAddressSpaces: Fix bug about replacing addrspacecast InferAddressSpaces assumes the pointee type of addrspacecast is the same as the operand, which is not always true and causes invalid IR. This bug cause build failure in HCC. This patch fixes that. Differential Revision: https://reviews.llvm.org/D39432 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316957 91177308-0d34-0410-b5e6-96231b3b80d8