diff options
Diffstat (limited to 'src/ir/manipulation.h')
-rw-r--r-- | src/ir/manipulation.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ir/manipulation.h b/src/ir/manipulation.h index d363fc547..ec137d372 100644 --- a/src/ir/manipulation.h +++ b/src/ir/manipulation.h @@ -38,6 +38,11 @@ template<typename InputType> inline Nop* nop(InputType* target) { return convert<InputType, Nop>(target); } +template<typename InputType> +inline Unreachable* unreachable(InputType* target) { + return convert<InputType, Unreachable>(target); +} + // Convert a node that allocates template<typename InputType, typename OutputType> inline OutputType* convert(InputType* input, MixedArena& allocator) { |