Commit ca09b484 authored by dbarbera's avatar dbarbera
Browse files

Use predefined pointer type

parent eb216185
......@@ -68,7 +68,7 @@ class Context():
self.one = core.Constant.int(self.i32, 1)
# Intialize built-in functions
ty = core.Type.function(self.void, [core.Type.pointer(self.i8)], True)
ty = core.Type.function(self.void, [self.i8_ptr], True)
self.funcs['printf'] = self.module.add_function(ty, 'printf')
self.funcs['memcpy'] = core.Function.intrinsic(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment