]> granicus.if.org Git - clang/commit
Fix ICE on reference binding with mismatching addr spaces.
authorAnastasia Stulova <anastasia.stulova@arm.com>
Tue, 5 Feb 2019 11:32:58 +0000 (11:32 +0000)
committerAnastasia Stulova <anastasia.stulova@arm.com>
Tue, 5 Feb 2019 11:32:58 +0000 (11:32 +0000)
commit40d23d1cdda4637cd6f44832762cf22d2619eb36
tree41040358194b81f5a4a6a18c234e030ed982efde
parent17a0dd9d7bd9e7005c8e7c02d56cea3b3808aaec
Fix ICE on reference binding with mismatching addr spaces.

When we attempt to add an addr space qual to a type already
qualified by an addr space ICE is triggered. Before creating
a type with new address space, remove the old addr space.

Fixing PR38614!

Differential Revision: https://reviews.llvm.org/D57524

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@353160 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaInit.cpp
test/SemaOpenCLCXX/address-space-of-this.cl [new file with mode: 0644]