summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtPrinter.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-21 12:39:25 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-21 12:39:25 +0000
commitd46e4a230344c78160f8c08431dfe19d3e6582ce (patch)
tree1084286869de3c535eca31387ecf1b3250b4236c /clang/lib/AST/StmtPrinter.cpp
parent8dd637aa04067837056633aedd3d15e0af4f2685 (diff)
downloadbcm5719-llvm-d46e4a230344c78160f8c08431dfe19d3e6582ce.tar.gz
bcm5719-llvm-d46e4a230344c78160f8c08431dfe19d3e6582ce.zip
Revert "Lex: Use the correct types for MS integer suffixes"
This reverts commit r211426. This broke the arm bots. The crash can be reproduced on X86 by running. ./bin/clang -cc1 -fsyntax-only -verify -fms-extensions ~/llvm/clang/test/Lexer/ms-extensions.c -triple arm-linux llvm-svn: 211434
Diffstat (limited to 'clang/lib/AST/StmtPrinter.cpp')
-rw-r--r--clang/lib/AST/StmtPrinter.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp
index 5c92521c7af..0f4fd552461 100644
--- a/clang/lib/AST/StmtPrinter.cpp
+++ b/clang/lib/AST/StmtPrinter.cpp
@@ -947,10 +947,8 @@ void StmtPrinter::VisitIntegerLiteral(IntegerLiteral *Node) {
// FIXME: The Short and UShort cases are to handle cases where a short
// integeral literal is formed during template instantiation. They should
// be removed when template instantiation no longer needs integer literals.
- case BuiltinType::SChar: OS << "i8"; break;
- case BuiltinType::UChar: OS << "Ui8"; break;
- case BuiltinType::Short: OS << "i16"; break;
- case BuiltinType::UShort: OS << "Ui16"; break;
+ case BuiltinType::Short:
+ case BuiltinType::UShort:
case BuiltinType::Int: break; // no suffix.
case BuiltinType::UInt: OS << 'U'; break;
case BuiltinType::Long: OS << 'L'; break;
OpenPOWER on IntegriCloud