diff options
author | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-09-26 09:42:50 +0000 |
---|---|---|
committer | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-09-26 09:42:50 +0000 |
commit | 3c77f69c50d3377491c917808fbfc4b9787acd6f (patch) | |
tree | 8b84b3de175727d09b7dcf1b5703e0d46b64f9e7 /gcc/gimple.h | |
parent | a8d09781ee8c8e0020fac0fbdb15669710fea4b4 (diff) | |
download | gcc-3c77f69c50d3377491c917808fbfc4b9787acd6f.tar.gz |
Implement -Wimplicit-fallthrough.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240485 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple.h')
-rw-r--r-- | gcc/gimple.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h index 980bdf8314c..9fad15bf3f8 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -2921,6 +2921,16 @@ gimple_call_internal_unique_p (const gimple *gs) return gimple_call_internal_unique_p (gc); } +/* Return true if GS is an internal function FN. */ + +static inline bool +gimple_call_internal_p (const gimple *gs, internal_fn fn) +{ + return (is_gimple_call (gs) + && gimple_call_internal_p (gs) + && gimple_call_internal_fn (gs) == fn); +} + /* If CTRL_ALTERING_P is true, mark GIMPLE_CALL S to be a stmt that could alter control flow. */ |