diff options
author | Tim Northover <tnorthover@apple.com> | 2017-08-08 22:03:54 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2017-08-08 22:03:54 +0000 |
commit | 7e859c0fd66b5d9e54d113974ed9bfd8098980ba (patch) | |
tree | 42eca81cfff0eea3fdeed888ebb4352f474c9783 /lib/Lex/LiteralSupport.cpp | |
parent | 0e34f999da1f405c24ff6cb7592f2dee218f8f88 (diff) | |
download | clang-7e859c0fd66b5d9e54d113974ed9bfd8098980ba.tar.gz |
Lexer: always allow imaginary constants in GNU mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310423 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/LiteralSupport.cpp')
-rw-r--r-- | lib/Lex/LiteralSupport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/LiteralSupport.cpp b/lib/Lex/LiteralSupport.cpp index a598a46781..52b259edce 100644 --- a/lib/Lex/LiteralSupport.cpp +++ b/lib/Lex/LiteralSupport.cpp @@ -659,7 +659,7 @@ NumericLiteralParser::NumericLiteralParser(StringRef TokSpelling, } } // "i", "if", and "il" are user-defined suffixes in C++1y. - if (*s == 'i' && PP.getLangOpts().CPlusPlus14) + if (*s == 'i' && !PP.getLangOpts().GNUMode) break; // fall through. case 'j': |