[cfe-dev] [PATCH] Flexible array initializers may be strings

Chris Lattner clattner at apple.com
Sun Oct 10 11:18:11 PDT 2010


On Sep 24, 2010, at 2:41 AM, Pierre Habouzit wrote:

>> @main.foo = internal constant %0 { i32 0, [4 x i8] c"foo\00" }, align 4
>> %foo = alloca %struct.a, align 4
>> call void @llvm.memcpy.p0i8.p0i8.i64(i8* %tmp, i8* bitcast (%0* @main.foo to i8*), i64 4, i32 4, i1 false)
>> 
>> Sadly fixing that exceeds my current clang hacking skills. Do you
>> want me to report a bug for that ?
> 
> I made it http://llvm.org/bugs/show_bug.cgi?id=8217

Thanks, fixed in r116166!

-Chris



More information about the cfe-dev mailing list