diff options
author | robertl <robertl@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-10-14 23:39:38 +0000 |
---|---|---|
committer | robertl <robertl@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-10-14 23:39:38 +0000 |
commit | cdb79f21f93936d874f4d0bd7389b25ec55ad59b (patch) | |
tree | 73e23d8e34bba39d040eb05e706ffcb8e7c1cdeb /gcc/c-pragma.c | |
parent | a694d620f3b8c61e5583c5e96d12e8edf25ce8cb (diff) | |
download | gcc-cdb79f21f93936d874f4d0bd7389b25ec55ad59b.tar.gz |
* c-pragma.c (handle_pragma_token): Test for null tree before
dereferencing TREE_CODE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23104 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-pragma.c')
-rw-r--r-- | gcc/c-pragma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-pragma.c b/gcc/c-pragma.c index 5856d058b30..f9bfbe7987b 100644 --- a/gcc/c-pragma.c +++ b/gcc/c-pragma.c @@ -385,7 +385,7 @@ handle_pragma_token (string, token) case ps_left: - if (TREE_CODE(token) == INTEGER_CST) + if (token && TREE_CODE(token) == INTEGER_CST) align = TREE_INT_CST_LOW(token); else align = atoi (string); |