This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

patch: fix typo in mudflap


I've committed the following as obvious.

        * tree-mudflap.c (mf_xform_derefs_1): Add parentheses around TREE_TYPE.

Index: tree-mudflap.c
===================================================================
--- tree-mudflap.c      (revision 117573)
+++ tree-mudflap.c      (working copy)
@@ -819,7 +819,7 @@ mf_xform_derefs_1 (block_stmt_iterator *
               size = DECL_SIZE_UNIT (field);

            if (elt)
-             elt = build1 (ADDR_EXPR, build_pointer_type TREE_TYPE (elt), elt);
+             elt = build1 (ADDR_EXPR, build_pointer_type (TREE_TYPE (elt)), elt);
             addr = fold_convert (ptr_type_node, elt ? elt : base);
             addr = fold_build2 (PLUS_EXPR, ptr_type_node,
                                addr, fold_convert (ptr_type_node,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]