Commit 8b07aef2 authored by yb9976's avatar yb9976
Browse files

Fixed compile errors in optimize build.

parent abd85448
...@@ -258,12 +258,17 @@ static void ia32_dump_node(FILE *F, const ir_node *n, dump_reason_t reason) ...@@ -258,12 +258,17 @@ static void ia32_dump_node(FILE *F, const ir_node *n, dump_reason_t reason)
/* dump frame entity */ /* dump frame entity */
fprintf(F, "frame use = %s\n", get_frame_use_str(n)); fprintf(F, "frame use = %s\n", get_frame_use_str(n));
if (attr->am_imm.kind == X86_IMM_FRAMEOFFSET || if (attr->am_imm.kind == X86_IMM_FRAMEOFFSET
attr->old_frame_ent != NULL) { #ifndef NDEBUG
|| attr->old_frame_ent != NULL
#endif
) {
fprintf(F, "frame entity = "); fprintf(F, "frame entity = ");
ir_entity *entity = attr->am_imm.entity; ir_entity *entity = attr->am_imm.entity;
#ifndef NDEBUG
if (entity == NULL) if (entity == NULL)
entity = attr->old_frame_ent; entity = attr->old_frame_ent;
#endif
if (entity != NULL) { if (entity != NULL) {
ir_fprintf(F, "%+F", entity); ir_fprintf(F, "%+F", entity);
} else { } else {
......
Supports Markdown
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