summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-10-01 01:01:08 +0000
committerJohn McCall <rjmccall@apple.com>2011-10-01 01:01:08 +0000
commite4fe2457168ed075a8997b2def10c78271fd58d7 (patch)
treea19346c9f1672c4becf369e9b09a7faae44594d3 /clang/test/CodeGenObjC
parent525f05597f99fc16f399fd7c3bb305b8ed5166f4 (diff)
downloadbcm5719-llvm-e4fe2457168ed075a8997b2def10c78271fd58d7.tar.gz
bcm5719-llvm-e4fe2457168ed075a8997b2def10c78271fd58d7.zip
Allow the results of cf_returns_not_retained function
calls, or calls to audited functions without an explicit return attribute, to be casted without a bridge cast. Tie this mechanism in with the existing exceptions to the cast restrictions. State those restrictions more correctly and generalize. llvm-svn: 140912
Diffstat (limited to 'clang/test/CodeGenObjC')
-rw-r--r--clang/test/CodeGenObjC/arc-unbridged-cast.m2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/test/CodeGenObjC/arc-unbridged-cast.m b/clang/test/CodeGenObjC/arc-unbridged-cast.m
index 0f3db09f1ff..1da47e55828 100644
--- a/clang/test/CodeGenObjC/arc-unbridged-cast.m
+++ b/clang/test/CodeGenObjC/arc-unbridged-cast.m
@@ -29,8 +29,6 @@ CFStringRef SomeOtherFunc() __attribute__((cf_returns_retained));
id MMM()
{
id obj = (id)((CFStringRef) __builtin___CFStringMakeConstantString ("" "Some CF String" ""));
- if (obj)
- return (id) SomeOtherFunc();
return 0;
}
OpenPOWER on IntegriCloud