[relay][vm] remove throw in destructor (#3215)
authorZhi <5145158+zhiics@users.noreply.github.com>
Tue, 21 May 2019 19:53:03 +0000 (12:53 -0700)
committerJared Roesch <roeschinc@gmail.com>
Tue, 21 May 2019 19:53:03 +0000 (12:53 -0700)
src/runtime/vm/vm.cc

index b2d326e..6f9190e 100644 (file)
@@ -226,8 +226,8 @@ Instruction::~Instruction() {
       return;
     default:
       std::ostringstream out;
-      out << "Invalid instruction " << static_cast<int>(this->op);
-      throw std::runtime_error(out.str());
+      LOG(FATAL) << "Invalid instruction " << static_cast<int>(this->op)
+                 << "\n";
   }
 }