]> granicus.if.org Git - clang/commit
[Sema][ObjC] Fix spurious -Wcast-qual warnings.
authorAkira Hatanaka <ahatanaka@apple.com>
Fri, 11 Aug 2017 00:06:49 +0000 (00:06 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Fri, 11 Aug 2017 00:06:49 +0000 (00:06 +0000)
commit9209bf11b7d171e583119c8f50a8e6cf337e5422
tree1eb1befd9c775563655489921a1451a802635c6a
parentf7558e5102a025063b375fa1b9d0d78a15713fc1
[Sema][ObjC] Fix spurious -Wcast-qual warnings.

We do not meaningfully track object const-ness of Objective-C object
types. Silence the -Wcast-qual warning that is issued when casting to or
from Objective-C object types results in losing const qualification.

rdar://problem/33807915

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310672 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaCast.cpp
test/SemaObjC/illegal-nonarc-bridged-cast.m