diff options
author | Tony Lindgren <[email protected]> | 2019-10-04 09:06:41 -0700 |
---|---|---|
committer | Tony Lindgren <[email protected]> | 2019-10-04 09:06:41 -0700 |
commit | 1913c7f3fc2514e09262baf2267a82dfdb215c39 (patch) | |
tree | 1aaf6970e99c1f5535776f9fd9067f0d811b2532 /scripts/gcc-plugins/randomize_layout_plugin.c | |
parent | f90ec6cdf674248dcad85bf9af6e064bf472b841 (diff) | |
parent | 96d49bbfe6c1a6bb43ccd00fb87aca100e32e5e2 (diff) |
Merge tag 'fix-missing-panels' into fixes
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
-rw-r--r-- | scripts/gcc-plugins/randomize_layout_plugin.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/gcc-plugins/randomize_layout_plugin.c b/scripts/gcc-plugins/randomize_layout_plugin.c index 6d5bbd31db7f..bd29e4e7a524 100644 --- a/scripts/gcc-plugins/randomize_layout_plugin.c +++ b/scripts/gcc-plugins/randomize_layout_plugin.c @@ -443,13 +443,13 @@ static int is_pure_ops_struct(const_tree node) if (node == fieldtype) continue; - if (!is_fptr(fieldtype)) - return 0; - - if (code != RECORD_TYPE && code != UNION_TYPE) + if (code == RECORD_TYPE || code == UNION_TYPE) { + if (!is_pure_ops_struct(fieldtype)) + return 0; continue; + } - if (!is_pure_ops_struct(fieldtype)) + if (!is_fptr(fieldtype)) return 0; } |