commit | a97132a9c44d31dafa81db000340caed6218cee5 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Mon Oct 06 07:26:43 2008 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Mon Oct 06 07:26:43 2008 +0000 |
tree | bca75815d6c9c582efb78ba74d368700dcba9356 | |
parent | 2c091b1ead0c834a63a1c9fbdb5a17537ae65fb7 [diff] [blame] |
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. llvm-svn: 57163
diff --git a/clang/test/CodeGen/cfstring.c b/clang/test/CodeGen/cfstring.c index ef42d06..7d7edec 100644 --- a/clang/test/CodeGen/cfstring.c +++ b/clang/test/CodeGen/cfstring.c
@@ -4,3 +4,8 @@ void f() { CFSTR("Hello, World!"); } + +// rdar://6248329 +void *G = CFSTR("yo joe"); + +