Fix deprecated function use

This commit is contained in:
Siu Kwan Lam 2014-02-18 14:13:40 -06:00
commit b86cc097d9
3 changed files with 7 additions and 2 deletions

View file

@ -349,7 +349,7 @@ class CBuilder(object):
elif not isinstance(count, lc.Value):
count = self.constant(types.int, count).value
ptr = self.builder.alloca_array(ty, count, name=name)
ptr = self.builder.alloca(ty, size=count, name=name)
return CArray(self, ptr)
def ret(self, val=None):