From c69d454d5aa427279c73d9e8e157f246159ce683 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sun, 25 Jan 2009 01:54:01 +0000 Subject: Make the constant folder aware of __builtin___CFStringMakeConstantString. (We get into trouble in GenerateStaticBlockVarDecl if the constant folder isn't accurate.) llvm-svn: 62949 --- clang/test/CodeGen/cfstring.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'clang/test/CodeGen/cfstring.c') diff --git a/clang/test/CodeGen/cfstring.c b/clang/test/CodeGen/cfstring.c index 7d7edeca3cb..3bd1a2d1834 100644 --- a/clang/test/CodeGen/cfstring.c +++ b/clang/test/CodeGen/cfstring.c @@ -8,4 +8,6 @@ void f() { // rdar://6248329 void *G = CFSTR("yo joe"); - +void h() { + static void* h = CFSTR("Goodbye, World!"); +} -- cgit v1.2.3