diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-04-26 23:49:57 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-04-26 23:49:57 +0000 |
commit | deb6b7eae7458e29b8c66ee8dcbedf0210138b4d (patch) | |
tree | 6a5ab59d23fcfe1f235f37b0207a49ea3edfb269 /lib/Frontend/CompilerInvocation.cpp | |
parent | e069a713ea6826f502d5251778bd702ca028ffa7 (diff) | |
download | clang-deb6b7eae7458e29b8c66ee8dcbedf0210138b4d.tar.gz |
Remove unnecessary and somewhat inaccurate "C89" flag from language standards.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301500 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index dbbe6af6ab..481ce5bfa6 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -1615,7 +1615,7 @@ void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK, Opts.CPlusPlus1z = Std.isCPlusPlus1z(); Opts.Digraphs = Std.hasDigraphs(); Opts.GNUMode = Std.isGNUMode(); - Opts.GNUInline = Std.isC89(); + Opts.GNUInline = !Opts.C99 && !Opts.CPlusPlus; Opts.HexFloats = Std.hasHexFloats(); Opts.ImplicitInt = Std.hasImplicitInt(); |