-/*
- * dominators.c: Dominator computation on the control flow graph
+/**
+ * \file
+ * Dominator computation on the control flow graph
*
* Author:
* Dietmar Maurer (dietmar@ximian.com)
*
* (C) 2003 Ximian, Inc.
* Copyright 2011 Xamarin, Inc (http://www.xamarin.com)
+ * Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
#include <string.h>
#include <mono/metadata/debug-helpers.h>
MonoBitSet *dominators;
char *mem;
- mem = mono_mempool_alloc0 (cfg->mempool, bitsize);
+ mem = (char *)mono_mempool_alloc0 (cfg->mempool, bitsize);
bb->dominators = dominators = mono_bitset_mem_new (mem, cfg->num_bblocks, 0);
mem += bitsize;
cfg->bblocks [i]->flags &= ~BB_VISITED;
bitsize = mono_bitset_alloc_size (cfg->num_bblocks, 0);
- mem = mono_mempool_alloc0 (cfg->mempool, bitsize * cfg->num_bblocks);
+ mem = (char *)mono_mempool_alloc0 (cfg->mempool, bitsize * cfg->num_bblocks);
for (i = 0; i < cfg->num_bblocks; ++i) {
MonoBasicBlock *bb = cfg->bblocks [i];
GList *l;
for (l = h->loop_blocks; l; l = l->next) {
- MonoBasicBlock *b = l->data;
+ MonoBasicBlock *b = (MonoBasicBlock *)l->data;
if (b->dfn)
mono_bitset_set_fast (in_loop_blocks, b->dfn);
}