2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-04-18 05:50:27 +08:00

Simple fix to code to remove unnecessary NULL checks.

2013-01-02  Sriraman Tallam  <tmsriram@google.com>

	* config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
	NULL.

From-SVN: r194828
This commit is contained in:
Sriraman Tallam 2013-01-03 00:42:10 +00:00 committed by Sriraman Tallam
parent 7f2ca2ecb8
commit 7787862173
2 changed files with 8 additions and 9 deletions
gcc
ChangeLog
config/i386

@ -1,3 +1,8 @@
2013-01-02 Sriraman Tallam <tmsriram@google.com>
* config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
NULL.
2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR middle-end/55198

@ -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));