From 91b181d4a4b6c4e81c83565e0777f9ac1e29feb7 Mon Sep 17 00:00:00 2001 From: Zhi <5145158+zhiics@users.noreply.github.com> Date: Tue, 21 May 2019 12:53:03 -0700 Subject: [PATCH] [relay][vm] remove throw in destructor (#3215) --- src/runtime/vm/vm.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/vm/vm.cc b/src/runtime/vm/vm.cc index b2d326ec7792..6f9190e8907a 100644 --- a/src/runtime/vm/vm.cc +++ b/src/runtime/vm/vm.cc @@ -226,8 +226,8 @@ Instruction::~Instruction() { return; default: std::ostringstream out; - out << "Invalid instruction " << static_cast(this->op); - throw std::runtime_error(out.str()); + LOG(FATAL) << "Invalid instruction " << static_cast(this->op) + << "\n"; } }