ia32_attr_t *attr = get_ia32_attr(node);
static char res[64];
- if (! attr->am_offs) {
- return NULL;
- }
-
snprintf(res, sizeof(res), "%+ld", attr->am_offs);
return res;
/**
* Sets the string representation of the internal const.
*/
-void set_ia32_cnst(ir_node *node, char *cnst) {
+void set_ia32_cnst(ir_node *node, const char *cnst) {
ia32_attr_t *attr = get_ia32_attr(node);
attr->cnst = new_id_from_str(cnst);
}
attr->cnst_val.tv = get_Const_tarval(cnst);
mode = get_tarval_mode(attr->cnst_val.tv);
if (mode_is_reference(mode) &&
- get_mode_null(mode) == attr->cnst_val.tv)
- attr->cnst_val.tv = get_mode_null(mode_Is);
+ get_mode_null(mode) == attr->cnst_val.tv) {
+ attr->cnst_val.tv = get_mode_null(mode_Iu);
+ }
attr->cnst = get_ident_for_tv(attr->cnst_val.tv);
break;
case iro_SymConst: