Make sema and codegen allow __builtin___CFStringMakeConstantString as a valid
constant lvalue. Implement this in codegen by moving the code out of CGBuiltin
into EmitConstantExpr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57163 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/cfstring.c b/test/CodeGen/cfstring.c
index ef42d06..7d7edec 100644
--- a/test/CodeGen/cfstring.c
+++ b/test/CodeGen/cfstring.c
@@ -4,3 +4,8 @@
void f() {
CFSTR("Hello, World!");
}
+
+// rdar://6248329
+void *G = CFSTR("yo joe");
+
+