Commit 6604593b by noituIover Committed by Zhi

Fix a typo (#3913)

parent e8c6adc6
......@@ -156,7 +156,7 @@ def get_const_int(exp):
if isinstance(exp, int):
return exp
if not isinstance(exp, (expr.IntImm, expr.UIntImm)):
exp = ir_pass.Simplify(expr)
exp = ir_pass.Simplify(exp)
if not isinstance(exp, (expr.IntImm, expr.UIntImm)):
raise ValueError("Expect value to be constant int")
return exp.value
......
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