Replaced C99 variable-length array with an alloca to work with MSVC.
authorJoao Matos <joao.matos@xamarin.com>
Mon, 26 May 2014 22:42:09 +0000 (23:42 +0100)
committerJoao Matos <joao.matos@xamarin.com>
Mon, 26 May 2014 22:43:28 +0000 (23:43 +0100)
mono/metadata/sgen-new-bridge.c

index c9d1e825cdb3cbbe59014e4379c7cd7ec9af97a8..c322e649b75daa3e90f3c12046bf261d1b216f3e 100644 (file)
@@ -882,7 +882,7 @@ dump_graph (void)
        MonoObject *obj;
        HashEntry *entry;
        int prefix_len = strlen (dump_prefix);
-       char filename [prefix_len + 64];
+       char *filename = alloca(prefix_len + 64);
        FILE *file;
        int edge_id = 0;