Fix
This commit is contained in:
parent
1594e5456a
commit
c43b27356b
2 changed files with 1 additions and 2 deletions
|
|
@ -429,7 +429,7 @@ class CDefinition(CBuilder):
|
|||
functype = lc.Type.function(cls._retty_, [v for k, v in cls._argtys_])
|
||||
func = module.get_or_insert_function(functype, name=cls._name_)
|
||||
if not func.is_declaration: # already defined?
|
||||
raise NameError('Function %s has already been defined' % cls.name)
|
||||
raise NameError('Function %s has already been defined' % cls._name_)
|
||||
|
||||
# Name all arguments
|
||||
for i, (name, _) in enumerate(cls._argtys_):
|
||||
|
|
|
|||
|
|
@ -95,7 +95,6 @@ class Tester(CDefinition):
|
|||
self.ret()
|
||||
|
||||
def main():
|
||||
NUM_THREAD = 2
|
||||
module = Module.new(__name__)
|
||||
|
||||
mpm = PassManager.new()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue