aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
diff options
context:
space:
mode:
authorLeonard Chan <leonardchan@google.com>2018-08-07 19:43:53 +0000
committerLeonard Chan <leonardchan@google.com>2018-08-07 19:43:53 +0000
commit7add5820322a571f19e9ea5bed514d87c3799fa7 (patch)
treef98c113c41b07bd667b7d6105a8160f6155f50a6 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
parent0edcd0278d05ab6a5196d0d2a03f943b11218bac (diff)
downloadllvm-7add5820322a571f19e9ea5bed514d87c3799fa7.zip
llvm-7add5820322a571f19e9ea5bed514d87c3799fa7.tar.gz
llvm-7add5820322a571f19e9ea5bed514d87c3799fa7.tar.bz2
[Sema] Fix for crash on conditional operation with address_space pointer
Compiling the following causes clang to crash ``` char *cmp(__attribute__((address_space(1))) char *x, __attribute__((address_space(2))) char *y) { return x < y ? x : y; } ``` with the message: "wrong cast for pointers in different address spaces(must be an address space cast)!" This is because during IR emission, the source and dest type for a bitcast should not have differing address spaces. This fix prints an error since the code shouldn't compile in the first place. Differential Revision: https://reviews.llvm.org/D50278 llvm-svn: 339167
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
0 files changed, 0 insertions, 0 deletions