* gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".

This commit is contained in:
Doug Evans 2012-06-28 17:13:18 +00:00
parent da2d6d3da4
commit 659c9f3a0f
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2012-06-28 Doug Evans <dje@google.com>
* gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
* common/buffer.c: Include inttypes.h and stdint.h.

View File

@ -1140,15 +1140,15 @@ lookup_typename (const struct language_defn *language,
const struct block *block, int noerr)
{
struct symbol *sym;
struct type *tmp;
struct type *type;
sym = lookup_symbol (name, block, VAR_DOMAIN, 0);
if (sym != NULL && SYMBOL_CLASS (sym) == LOC_TYPEDEF)
return SYMBOL_TYPE (sym);
tmp = language_lookup_primitive_type_by_name (language, gdbarch, name);
if (tmp)
return tmp;
type = language_lookup_primitive_type_by_name (language, gdbarch, name);
if (type)
return type;
if (noerr)
return NULL;