From ff46522dd935fbe8703c40f23b4364f8c42adfd5 Mon Sep 17 00:00:00 2001 From: bakpakin Date: Wed, 31 Jan 2018 21:47:18 -0500 Subject: [PATCH] Assert computed gotos work on clang --- src/core/vm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/vm.c b/src/core/vm.c index e8aac606..37ede973 100644 --- a/src/core/vm.c +++ b/src/core/vm.c @@ -63,8 +63,8 @@ static int dst_continue(Dst *returnreg) { * Values stored here should be used immediately */ Dst retreg; -/* Use computed gotos for GCC, otherwise use switch */ -#ifdef __GNUCC__ +/* Use computed gotos for GCC and clang, otherwise use switch */ +#ifdef __GNUC__ #define VM_START() {vm_next(); #define VM_END() } #define VM_OP(op) label_##op :