diff gen/abi-x86-64.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 2292878925f4
children 8d086d552909
line wrap: on
line diff
--- a/gen/abi-x86-64.cpp	Thu Aug 06 17:04:36 2009 +0200
+++ b/gen/abi-x86-64.cpp	Thu Aug 06 01:47:39 2009 +0200
@@ -36,6 +36,7 @@
 #include "declaration.h"
 #include "aggregate.h"
 
+#include "gen/irstate.h"
 #include "gen/llvm.h"
 #include "gen/tollvm.h"
 #include "gen/logger.h"
@@ -281,7 +282,7 @@
             default:
                 assert(0 && "Unanticipated argument class for second half");
         }
-        return LLStructType::get(parts);
+        return LLStructType::get(gIR->context(), parts);
     }
 }