Skip to content

Commit 5258e66

Browse files
committed
Produce pure=True instead of pure=T.bool(True)
1 parent 7c69921 commit 5258e66

File tree

1 file changed

+1
-2
lines changed
  • src/script/printer/tir

1 file changed

+1
-2
lines changed

src/script/printer/tir/ir.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ TVM_STATIC_IR_FUNCTOR(IRDocsifier, vtable)
3232
if (dtype == d->cfg->int_dtype) {
3333
return LiteralDoc::Int(imm->value, imm_p->Attr("value"));
3434
} else if (dtype == DataType::Bool()) {
35-
return TIR(d, DType2Str(dtype))
36-
->Call({LiteralDoc::Boolean(imm->value, imm_p->Attr("value"))});
35+
return LiteralDoc::Boolean(imm->value, imm_p->Attr("value"));
3736
} else {
3837
return TIR(d, DType2Str(dtype))->Call({LiteralDoc::Int(imm->value, imm_p->Attr("value"))});
3938
}

0 commit comments

Comments
 (0)