[cfe-dev] incomplete vector initialization

John McCall rjmccall at apple.com
Fri Jun 11 10:54:32 PDT 2010


On Jun 10, 2010, at 6:02 PM, Anton Yartsev wrote:
> Noticed that only the first vector element is initialized in IR when initializing a vector with a single literal:
> vector int v = (vector int)(1);
> turns into
> @v = global <4 x i32> <i32 1, i32 0, i32 0, i32 0>, align 16 ; <<4 x i32>*> [#uses=0]
> 
> Attached is the patch and the test.

Committed in r105824, thanks!

John.



More information about the cfe-dev mailing list