Cast a struct to a void pointer so as to do a type-safe pointer comparison
(mistmatch found by clang).
This commit is contained in:
parent
882a416900
commit
a6c41bc9e5
|
@ -392,9 +392,9 @@ compiler_unit_check(struct compiler_unit *u)
|
|||
{
|
||||
basicblock *block;
|
||||
for (block = u->u_blocks; block != NULL; block = block->b_list) {
|
||||
assert(block != (void *)0xcbcbcbcb);
|
||||
assert(block != (void *)0xfbfbfbfb);
|
||||
assert(block != (void *)0xdbdbdbdb);
|
||||
assert((void *)block != (void *)0xcbcbcbcb);
|
||||
assert((void *)block != (void *)0xfbfbfbfb);
|
||||
assert((void *)block != (void *)0xdbdbdbdb);
|
||||
if (block->b_instr != NULL) {
|
||||
assert(block->b_ialloc > 0);
|
||||
assert(block->b_iused > 0);
|
||||
|
|
Loading…
Reference in New Issue