From: Moritz Kroll Date: Sat, 21 Feb 2009 21:35:55 +0000 (+0000) Subject: typo X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=01fddcffc8793136b8944d11985a79a3609fbb79;p=libfirm typo [r25552] --- diff --git a/include/libfirm/typerep.h b/include/libfirm/typerep.h index 3e916c57e..37a6f66b8 100644 --- a/include/libfirm/typerep.h +++ b/include/libfirm/typerep.h @@ -233,7 +233,7 @@ ir_allocation get_entity_allocation(const ir_entity *ent); void set_entity_allocation(ir_entity *ent, ir_allocation al); /** Return the name of the allocation type. */ -const char *get_allocation_name(ir_allocation vis); +const char *get_allocation_name(ir_allocation al); /** Returns the visibility of an entity. */ ir_visibility get_entity_visibility(const ir_entity *ent); diff --git a/ir/tr/entity.c b/ir/tr/entity.c index ea37d1314..ba2b3d644 100644 --- a/ir/tr/entity.c +++ b/ir/tr/entity.c @@ -390,10 +390,10 @@ void } /* set_entity_allocation */ /* return the name of the visibility */ -const char *get_allocation_name(ir_allocation all) +const char *get_allocation_name(ir_allocation al) { #define X(a) case a: return #a - switch (all) { + switch (al) { X(allocation_automatic); X(allocation_parameter); X(allocation_dynamic);