From 778786217358981221cea14a4c543eaa5fba2221 Mon Sep 17 00:00:00 2001 From: Sriraman Tallam Date: Thu, 3 Jan 2013 00:42:10 +0000 Subject: [PATCH] Simple fix to code to remove unnecessary NULL checks. 2013-01-02 Sriraman Tallam * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for NULL. From-SVN: r194828 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/i386.c | 12 +++--------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2ab26d339c1..244208da881 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-01-02 Sriraman Tallam + + * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for + NULL. + 2013-01-02 John David Anglin PR middle-end/55198 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index ee2b052bb9a..60f68d45369 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -29626,15 +29626,9 @@ fold_builtin_cpu (tree fndecl, tree *args) {"avx2", F_AVX2} }; - tree __processor_model_type = NULL_TREE; - tree __cpu_model_var = NULL_TREE; - - if (__processor_model_type == NULL_TREE) - __processor_model_type = build_processor_model_struct (); - - if (__cpu_model_var == NULL_TREE) - __cpu_model_var = make_var_decl (__processor_model_type, - "__cpu_model"); + tree __processor_model_type = build_processor_model_struct (); + tree __cpu_model_var = make_var_decl (__processor_model_type, + "__cpu_model"); gcc_assert ((args != NULL) && (*args != NULL)); -- 2.30.2