diff options
Diffstat (limited to 'compiler/luci-interpreter/src/loader/nodes/Cast.cpp')
-rw-r--r-- | compiler/luci-interpreter/src/loader/nodes/Cast.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/luci-interpreter/src/loader/nodes/Cast.cpp b/compiler/luci-interpreter/src/loader/nodes/Cast.cpp index 21ea5ceab..a16354c96 100644 --- a/compiler/luci-interpreter/src/loader/nodes/Cast.cpp +++ b/compiler/luci-interpreter/src/loader/nodes/Cast.cpp @@ -24,9 +24,7 @@ namespace luci_interpreter std::unique_ptr<Kernel> build_kernel_CircleCast(const luci::CircleNode *circle_node, KernelBuilderHelper &helper) { - const auto *node = dynamic_cast<const luci::CircleCast *>(circle_node); - if (node == nullptr) - throw std::runtime_error("wrong builder for operation"); + const auto *node = loco::must_cast<const luci::CircleCast *>(circle_node); assert(node->arity() == 1); |