From 6f62cffd63ba698fafe8a89470b0c02c4586d991 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Thu, 6 Aug 2009 21:31:35 +0000 Subject: [PATCH] Output the new StructType constructor, which takes the context of the module as first argument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78340 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/CppBackend/CPPBackend.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index 3e9c29ec26c..c467ead8bb4 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -575,6 +575,7 @@ namespace { nl(Out); } Out << "StructType* " << typeName << " = StructType::get(" + << "mod->getContext(), " << typeName << "_fields, /*isPacked=*/" << (ST->isPacked() ? "true" : "false") << ");"; nl(Out);