diff gen/llvmhelpers.cpp @ 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 1d5c3354b3c2
children 91af6d05338c
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp	Thu Aug 06 16:02:14 2009 +0200
+++ b/gen/llvmhelpers.cpp	Fri Aug 14 00:39:18 2009 +0200
@@ -213,7 +213,7 @@
     std::string labelname = gIR->func()->gen->getScopedLabelName(target->toChars());
     llvm::BasicBlock*& targetBB = gIR->func()->gen->labelToBB[labelname];
     if (targetBB == NULL)
-        targetBB = llvm::BasicBlock::Create("label_" + labelname, gIR->topfunc());
+        targetBB = llvm::BasicBlock::Create(gIR->context(), "label_" + labelname, gIR->topfunc());
 
     // emit code for finallys between goto and label
     DtoEnclosingHandlers(loc, lblstmt);