Change the PointerType api for creating pointer types. The old functionality of Point...
[oota-llvm.git] / examples / BrainF / BrainFDriver.cpp
index 7d29fe6f72f790cacf07029580e157f7e50d8cbb..3f3b6c339280d25dca3f7344f1b59d9e4ca16d7e 100644 (file)
@@ -59,7 +59,7 @@ void addMainFunction(Module *mod) {
   //define i32 @main(i32 %argc, i8 **%argv)
   Function *main_func = cast<Function>(mod->
     getOrInsertFunction("main", IntegerType::Int32Ty, IntegerType::Int32Ty,
-                        PointerType::get(PointerType::get(
+                        PointerType::getUnqual(PointerType::getUnqual(
                           IntegerType::Int8Ty)), NULL));
   {
     Function::arg_iterator args = main_func->arg_begin();