Skip to content

Commit 903c3bc

Browse files
committed
Merge pull request godotengine#97727 from SlugFiller/llvm-computed-goto
Enable use of Labels as Values feature in Clang when not wrapped by GCC
2 parents cf34d32 + f14af8b commit 903c3bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/gdscript/gdscript_vm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ void (*type_init_function_table[])(Variant *) = {
227227
&VariantInitializer<PackedVector4Array>::init, // PACKED_VECTOR4_ARRAY.
228228
};
229229

230-
#if defined(__GNUC__)
230+
#if defined(__GNUC__) || defined(__clang__)
231231
#define OPCODES_TABLE \
232232
static const void *switch_table_ops[] = { \
233233
&&OPCODE_OPERATOR, \

0 commit comments

Comments
 (0)