Commit 66621687 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Do not unnecessarily create a new type with 4 byte alignment for a 2 byte constant value.

parent 8835c90c
......@@ -37,8 +37,7 @@ static ir_entity *create_ent(ir_entity **const dst, int value, const char *name)
{
if (!*dst) {
ir_mode *const mode = mode_Hu;
ir_type *const type = new_type_primitive(mode);
set_type_alignment(type, 4);
ir_type *const type = get_type_for_mode(mode);
ir_type *const glob = get_glob_type();
ident *const id = new_id_from_str(name);
ir_entity *const ent
......
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