From d9373bd12463716e2a03b6dca33693226679db42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E4=BA=91=E6=9C=AA=E4=BA=91?= Date: Wed, 31 May 2023 19:12:01 +0800 Subject: [PATCH] [bug] Fix: clang-tidy complaining explicit (#8109) --- taichi/ir/ir.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taichi/ir/ir.h b/taichi/ir/ir.h index 7b48b949df0c7..14bfc11c2611a 100644 --- a/taichi/ir/ir.h +++ b/taichi/ir/ir.h @@ -511,7 +511,7 @@ class Block : public IRNode { // variables, and AllocaStmt for other variables. std::map local_var_to_stmt; - Block(Kernel *kernel = nullptr) { + explicit Block(Kernel *kernel = nullptr) { parent_ = kernel; }