Commit 3101b92d authored by Michael Beck's avatar Michael Beck
Browse files

be_node_get_irn_reg(): nodes of mode_T do NOT return registers

[r13384]
parent 54d4a6e3
/*
* Project: libFIRM
* File name: ir/be/benode.c
* Purpose: Backend node support for generic backend nodes.
* Author: Sebastian Hack
* Modified by: Michael Beck, Matthias Braun
* Created: 17.05.2005
* CVS-ID: $Id$
* Copyright: (c) 1998-2007 Universitt Karlsruhe
* Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
*/
/**
* @file benode.c
* @date 17.05.2005
* @author Sebastian Hack
*
* Backend node support.
*
* Backend node support for generic backend nodes.
* This file provides Perm, Copy, Spill and Reload nodes.
*
* Copyright (C) 2005-2006 Universitaet Karlsruhe
* Released under the GPL
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
......@@ -1128,7 +1137,11 @@ be_node_get_irn_reg_req(const void *self, const ir_node *irn, int pos)
const arch_register_t *
be_node_get_irn_reg(const void *_self, const ir_node *irn)
{
be_reg_data_t *r = retrieve_reg_data(irn);
be_reg_data_t *r;
if (get_irn_mode(irn) == mode_T)
return NULL;
r = retrieve_reg_data(irn);
return r->reg;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment