aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/ObjCARC/pr12270.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2012-04-05 20:27:21 +0000
committerDan Gohman <gohman@apple.com>2012-04-05 20:27:21 +0000
commit036ebfd87434bc30a0e51f4b9a3d55ab49ee5509 (patch)
treeaad70b9348ac41844d59c9a7a13e6d0d0025348c /test/Transforms/ObjCARC/pr12270.ll
parent703bf84d324718b6af0a8818b4515193b2a71020 (diff)
Fix accidentally inverted logic from r152803, and make the
testcase slightly less trivial. This fixes rdar://11171718. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154118 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/ObjCARC/pr12270.ll')
-rw-r--r--test/Transforms/ObjCARC/pr12270.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/ObjCARC/pr12270.ll b/test/Transforms/ObjCARC/pr12270.ll
index 30610f8694..1faae5f687 100644
--- a/test/Transforms/ObjCARC/pr12270.ll
+++ b/test/Transforms/ObjCARC/pr12270.ll
@@ -9,7 +9,13 @@ entry:
return: ; No predecessors!
%bar = bitcast %2* %x to i8*
%foo = call i8* @objc_autoreleaseReturnValue(i8* %bar) nounwind
+ call void @callee()
+ call void @use_pointer(i8* %foo)
+ call void @objc_release(i8* %foo) nounwind
ret void
}
declare i8* @objc_autoreleaseReturnValue(i8*)
+declare void @objc_release(i8*)
+declare void @callee()
+declare void @use_pointer(i8*)