17#ifndef __LUCL_IR_CAST_HELPERS_H__
18#define __LUCL_IR_CAST_HELPERS_H__
31 auto cast_arg =
dynamic_cast<T
>(arg);
34 std::string
msg =
"luci::must_cast() failed to cast: ";
35 msg +=
typeid(T).name();
37 throw std::invalid_argument(
msg.c_str());
T must_cast(loco::Node *node)
__attribute__((noinline)) std
__attribute__((noinline)) std T _must_cast(ARG arg)