diff options
Diffstat (limited to 'gcc/tree-object-size.c')
-rw-r--r-- | gcc/tree-object-size.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/tree-object-size.c b/gcc/tree-object-size.c index 924c4776411..92745538d0d 100644 --- a/gcc/tree-object-size.c +++ b/gcc/tree-object-size.c @@ -392,7 +392,8 @@ alloc_object_size (const_gimple call, int object_size_type) if (!callee) return unknown[object_size_type]; - alloc_size = lookup_attribute ("alloc_size", TYPE_ATTRIBUTES (TREE_TYPE(callee))); + alloc_size = lookup_attribute ("alloc_size", + TYPE_ATTRIBUTES (TREE_TYPE (callee))); if (alloc_size && TREE_VALUE (alloc_size)) { tree p = TREE_VALUE (alloc_size); @@ -1282,12 +1283,12 @@ const pass_data pass_data_object_sizes = class pass_object_sizes : public gimple_opt_pass { public: - pass_object_sizes(gcc::context *ctxt) - : gimple_opt_pass(pass_data_object_sizes, ctxt) + pass_object_sizes (gcc::context *ctxt) + : gimple_opt_pass (pass_data_object_sizes, ctxt) {} /* opt_pass methods: */ - opt_pass * clone () { return new pass_object_sizes (ctxt_); } + opt_pass * clone () { return new pass_object_sizes (m_ctxt); } unsigned int execute () { return compute_object_sizes (); } }; // class pass_object_sizes |