summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-06 16:53:45 +0000
committerChris Lattner <sabre@nondot.org>2009-04-06 16:53:45 +0000
commitdcceee734c25c256ffac95a844afe06ad3f1f095 (patch)
tree2804e1074463ccd529a947dbb6fddb7e8ce8d045 /clang/test/CodeGenObjC
parent01aa6ec97a49a2b36863c9d17b302f68c2d2b361 (diff)
downloadbcm5719-llvm-dcceee734c25c256ffac95a844afe06ad3f1f095.tar.gz
bcm5719-llvm-dcceee734c25c256ffac95a844afe06ad3f1f095.zip
Fix a couple of cases where Constant* pointers can dangle in
ObjCNonFragileABITypesHelper by converting them to dynamic getters. This fixes a crash on rdar://6757213. The others should be converted over as well. llvm-svn: 68445
Diffstat (limited to 'clang/test/CodeGenObjC')
-rw-r--r--clang/test/CodeGenObjC/try.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/try.m b/clang/test/CodeGenObjC/try.m
new file mode 100644
index 00000000000..4148697dd01
--- /dev/null
+++ b/clang/test/CodeGenObjC/try.m
@@ -0,0 +1,9 @@
+// RUN: clang %s -S -o - -mtriple=i686-apple-darwin9 &&
+// RUN: clang %s -S -o - -mtriple=x86_64-apple-darwin9
+
+// rdar://6757213 - Don't crash if the internal proto for
+// __objc_personality_v0 mismatches with an actual one.
+void __objc_personality_v0() { }
+void test1(void) {
+ @try { } @catch (...) { }
+}
OpenPOWER on IntegriCloud