diff gen/nested.cpp @ 1569:755abafbf25d

Push the context through StructType::get. Requires LLVM >= 78258. Also remove old #if's.
author Benjamin Kramer <benny.kra@gmail.com>
date Thu, 06 Aug 2009 01:47:39 +0200
parents 630fc54f7c1e
children
line wrap: on
line diff
--- a/gen/nested.cpp	Thu Aug 06 17:04:36 2009 +0200
+++ b/gen/nested.cpp	Thu Aug 06 01:47:39 2009 +0200
@@ -447,7 +447,7 @@
                 }
             }
             
-            const LLStructType* frameType = LLStructType::get(types);
+            const LLStructType* frameType = LLStructType::get(gIR->context(), types);
             gIR->module->addTypeName(std::string("nest.") + fd->toChars(), frameType);
             
             Logger::cout() << "frameType = " << *frameType << '\n';