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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to