Commit 3cd18d41 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Use MEMCPY().

parent 1bc22642
......@@ -236,7 +236,7 @@ def insdecl(node):
for input in node.ins:
res += "\n\tr_in[" + repr(i) + "] = irn_" + input.name + ";"
i += 1
res += "\n\tif (arity > 0) {\n\t\tmemcpy(&r_in[" + repr(insarity) + "], in, sizeof(ir_node *) * arity);\n\t}\n\t"
res += "\n\tMEMCPY(&r_in[" + repr(insarity) + "], in, sizeof(ir_node *) * arity);\n\t"
elif arity == 0:
return ""
else:
......
......@@ -19,6 +19,7 @@
#include "irgraph_t.h"
#include "irbackedge_t.h"
#include "irgopt.h"
#include "util.h"
{% endif %}
{% if spec.external %}
......
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