From 00c17d921005eecc07f4300df898b9107d15ea1d Mon Sep 17 00:00:00 2001 From: Masahiro Masuda Date: Wed, 10 Feb 2021 21:52:37 +0900 Subject: [PATCH] error out LiftAttrScope for now --- src/tir/transforms/lift_attr_scope.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tir/transforms/lift_attr_scope.cc b/src/tir/transforms/lift_attr_scope.cc index 27dd583b8b423..40d152b3b3b60 100644 --- a/src/tir/transforms/lift_attr_scope.cc +++ b/src/tir/transforms/lift_attr_scope.cc @@ -157,6 +157,12 @@ class AttrScopeLifter : public StmtMutator { } } + Stmt VisitStmt_(const WhileNode* op) final { + // TODO(masahi): Do we need a special handling for While nodes? + LOG(FATAL) << "WhileNode not supported in LiftAttrScope."; + return Stmt(); + } + private: // value comparison that also compares content of int constant static bool ValueSame(const PrimExpr& a, const PrimExpr& b) {