Commit 51223c38 by Cody Hao Yu Committed by Tianqi Chen

Make duplicated function name checker working (#705)

parent 770b904b
......@@ -36,3 +36,4 @@ List of Contributors
- [Jian Weng](https://github.com/were)
- [Masahiro Masuda](https://github.com/masahi)
- [Haolong Zhang](https://github.com/haolongzhangm)
- [Cody Hao Yu](https://github.com/comaniac)
......@@ -310,6 +310,7 @@ def build(sch,
raise ValueError("sch have to be Schedule, LoweredFunc or list of LoweredFunc")
if x.name in fname_set:
raise ValueError("Duplicate function name %s" % x.name)
fname_set.add(x.name)
target = _target.current_target() if target is None else target
target = _target.create(target) if target else _target.create("llvm")
......
Markdown is supported
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