remove no longer needed gcc8 workaround. add gcc9 workaround

Occasionally LLVM headers generate warnings with newer gcc versions and
since we use -Werror this has to be worked around.
This commit is contained in:
Andrew Kelley 2019-08-26 21:40:44 -04:00
parent 50a80261dc
commit 1df75da918
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -15,9 +15,9 @@
#include "zig_llvm.h"
#if __GNUC__ >= 8
#if __GNUC__ >= 9
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wclass-memaccess"
#pragma GCC diagnostic ignored "-Winit-list-lifetime"
#endif
#include <llvm/Analysis/TargetLibraryInfo.h>
@ -50,7 +50,7 @@
#include <lld/Common/Driver.h>
#if __GNUC__ >= 8
#if __GNUC__ >= 9
#pragma GCC diagnostic pop
#endif