[LLVMbugs] [Bug 20938] New: ConstantAggregateZero missing from LLVM-C interface
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Sep 14 04:57:53 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20938
Bug ID: 20938
Summary: ConstantAggregateZero missing from LLVM-C interface
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: achurch+llvm at achurch.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
There currently seems to be no function in the LLVM-C interface which returns a
ConstantAggregateZero value, such as would be used in constructing IR
equivalent to "@a = global [42 x i32] zeroinitializer" or the like.
Something like the following in lib/IR/Core.cpp ought to suffice:
LLVMValueRef LLVMConstAggregateZero(LLVMTypeRef Ty)
{
return wrap(ConstantAggregateZero::get(unwrap(Ty)));
}
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140914/b15dea58/attachment.html>
More information about the llvm-bugs
mailing list