From dcceee734c25c256ffac95a844afe06ad3f1f095 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 6 Apr 2009 16:53:45 +0000 Subject: 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 --- clang/test/CodeGenObjC/try.m | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 clang/test/CodeGenObjC/try.m (limited to 'clang/test/CodeGenObjC') 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 (...) { } +} -- cgit v1.2.3