Push LLVMContexts through the IntegerType APIs.
[oota-llvm.git] / unittests / ExecutionEngine / JIT / JITEventListenerTest.cpp
index e8907391af26e9efe7863d81237ffed0ad36e8b7..87e3280cf9867a2c05017efc53c7268317d1ffaf 100644 (file)
@@ -80,8 +80,8 @@ Function *buildFunction(Module *M) {
       TypeBuilder<int32_t(int32_t), false>::get(getGlobalContext()),
       GlobalValue::ExternalLinkage, "id", M);
   Value *Arg = Result->arg_begin();
-  BasicBlock *BB = BasicBlock::Create("entry", Result);
-  ReturnInst::Create(Arg, BB);
+  BasicBlock *BB = BasicBlock::Create(M->getContext(), "entry", Result);
+  ReturnInst::Create(M->getContext(), Arg, BB);
   return Result;
 }