diff options
author | Yaxun Liu <Yaxun.Liu@amd.com> | 2018-08-03 03:18:56 +0000 |
---|---|---|
committer | Yaxun Liu <Yaxun.Liu@amd.com> | 2018-08-03 03:18:56 +0000 |
commit | 4b06ffe3e4bd92d3feed902675dc2c1f952323f2 (patch) | |
tree | c76aa3460c041bb30d358432c79b94e438034757 /llvm/lib/Transforms/Utils/LoopRotationUtils.cpp | |
parent | 9c85261559d6f9ec6e6263d8c4cf757e9febb41a (diff) | |
download | llvm-4b06ffe3e4bd92d3feed902675dc2c1f952323f2.zip llvm-4b06ffe3e4bd92d3feed902675dc2c1f952323f2.tar.gz llvm-4b06ffe3e4bd92d3feed902675dc2c1f952323f2.tar.bz2 |
Sema: Fix explicit address space cast involving void pointers
Explicit cast of a void pointer to a pointer type in different address space is
incorrectly classified as bitcast, which causes invalid bitcast in codegen.
The patch fixes that by checking the address space of the source and destination
type and set the correct cast kind.
Differential Revision: https://reviews.llvm.org/D50003
llvm-svn: 338805
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopRotationUtils.cpp')
0 files changed, 0 insertions, 0 deletions