summaryrefslogtreecommitdiff
path: root/lib/Lex/LiteralSupport.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2017-08-08 22:03:54 +0000
committerTim Northover <tnorthover@apple.com>2017-08-08 22:03:54 +0000
commit7e859c0fd66b5d9e54d113974ed9bfd8098980ba (patch)
tree42eca81cfff0eea3fdeed888ebb4352f474c9783 /lib/Lex/LiteralSupport.cpp
parent0e34f999da1f405c24ff6cb7592f2dee218f8f88 (diff)
downloadclang-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.cpp2
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':