Commit 91b181d4 by Zhi Committed by Jared Roesch

[relay][vm] remove throw in destructor (#3215)

parent 4474bfb9
...@@ -226,8 +226,8 @@ Instruction::~Instruction() { ...@@ -226,8 +226,8 @@ Instruction::~Instruction() {
return; return;
default: default:
std::ostringstream out; std::ostringstream out;
out << "Invalid instruction " << static_cast<int>(this->op); LOG(FATAL) << "Invalid instruction " << static_cast<int>(this->op)
throw std::runtime_error(out.str()); << "\n";
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment