http://llvm.org/bugs/show_bug.cgi?id=3182

           Summary: C++ backend generated code doesn't compile for vector
                    zero initializer
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]


The C++ code generated by the C++ backend for

define <2xi64> @foo() { ret <2xi64> zeroinitializer }

or any similar expression which causes the backend to emit code for a
zero-initialized vector

does not compile.

The produced code

ConstantAggregateZero* const_packed_2 = ConstantAggregateZero::get(VectorTy_0);

doesn't compile because ConstantAggregateZero::get is declared to return a
Constant *, rather than the more specific ConstantAggregateZero *

Other constant types, in apparently analogous get methods, return more specific
types - so perhaps a good fix is just to change the return type of
ConstantAggregateZero::get to the more specific type.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to