Push LLVMContext through GlobalVariables and IRBuilder.
[oota-llvm.git] / examples / BrainF / BrainF.cpp
index d3261d79965cc09f4da5cae40c38fdbcce006eec..7ae268f59297cf6e69926b5c513a68a05bd48caa 100644 (file)
@@ -128,6 +128,7 @@ void BrainF::header(LLVMContext& C) {
       get("Error: The head has left the tape.", true);
 
     GlobalVariable *aberrormsg = new GlobalVariable(
+      module->getContext(),
       msg_0->getType(),
       true,
       GlobalValue::InternalLinkage,