diff gen/runtime.cpp @ 1529:ad7f2f1862d6

Adjust LDC to work with the LLVMContext LLVM changes. This means we now require a fairly new LLVM revision. I use 75234.
author Christian Kamm <kamm incasoftware de>
date Fri, 10 Jul 2009 21:30:02 +0200
parents f19adff18813
children c88b16d4a13c
line wrap: on
line diff
--- a/gen/runtime.cpp	Thu Jul 09 21:13:19 2009 +0100
+++ b/gen/runtime.cpp	Fri Jul 10 21:30:02 2009 +0200
@@ -116,7 +116,7 @@
     }
 
     const llvm::PointerType* t = g->getType();
-    return new llvm::GlobalVariable(t->getElementType(),g->isConstant(),g->getLinkage(),NULL,g->getName(),target);
+    return new llvm::GlobalVariable(*target, t->getElementType(),g->isConstant(),g->getLinkage(),NULL,g->getName());
 }
 
 //////////////////////////////////////////////////////////////////////////////////////////////////