diff gen/irstate.h @ 1571:8d086d552909

IntegerType is now contextifed. Requires llvm >= 78969. resistor says this will be the last context API change :)
author Benjamin Kramer <benny.kra@gmail.com>
date Fri, 14 Aug 2009 00:39:18 +0200
parents 61f12f4651b5
children
line wrap: on
line diff
--- a/gen/irstate.h	Thu Aug 06 16:02:14 2009 +0200
+++ b/gen/irstate.h	Fri Aug 14 00:39:18 2009 +0200
@@ -200,7 +200,7 @@
             return call;
         }
 
-        llvm::BasicBlock* postinvoke = llvm::BasicBlock::Create("postinvoke", topfunc(), scopeend());
+        llvm::BasicBlock* postinvoke = llvm::BasicBlock::Create(gIR->context(), "postinvoke", topfunc(), scopeend());
         llvm::InvokeInst* invoke = ir->CreateInvoke(Callee, postinvoke, pad, ArgBegin, ArgEnd, Name);
         if (LLFunction* fn = llvm::dyn_cast<LLFunction>(Callee))
             invoke->setAttributes(fn->getAttributes());