Support and test template arguments for unions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178586 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher
2013-04-02 22:55:56 +00:00
parent cf0623bba4
commit c656fda3ae
2 changed files with 60 additions and 1 deletions

View File

@ -568,7 +568,8 @@ DICompositeType DIBuilder::createUnionType(DIDescriptor Scope, StringRef Name,
NULL,
Elements,
ConstantInt::get(Type::getInt32Ty(VMContext), RunTimeLang),
Constant::getNullValue(Type::getInt32Ty(VMContext))
Constant::getNullValue(Type::getInt32Ty(VMContext)),
NULL
};
return DICompositeType(MDNode::get(VMContext, Elts));
}