[LLVMbugs] [Bug 3182] New: C++ backend generated code doesn' t compile for vector zero initializer
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sun Dec 7 22:42:11 PST 2008
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: unassignedbugs at nondot.org
ReportedBy: flld0 at greynode.net
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list