]> granicus.if.org Git - clang/commit
ObjC lifetime: pull sugar off when the qualifiers conflict.
authorManman Ren <manman.ren@gmail.com>
Wed, 1 Jun 2016 17:14:19 +0000 (17:14 +0000)
committerManman Ren <manman.ren@gmail.com>
Wed, 1 Jun 2016 17:14:19 +0000 (17:14 +0000)
commit3313ed25f44191c719dca9ba7c12166da0da60ed
tree38de9663b2c0a362d1ac36bb74c05077534f3da4
parentffd5a34cf44abdf5f4bba81fcd38ffe49428dd3c
ObjC lifetime: pull sugar off when the qualifiers conflict.

It's possible to have multiple local ObjCLifetime qualifiers. When there is
a conflict, we can't stop after we reach a type that is directly qualified.
We need to keep pulling sugar off and removing the ObjCLifetime qualifers.

rdar://25804796

Differential Revision: http://reviews.llvm.org/D20843

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@271409 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaType.cpp
test/SemaObjC/arc-objc-lifetime-conflict.m [new file with mode: 0644]