git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155282 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nuno Lopes 2012-04-21 14:45:25 +00:00
Родитель c86d1fdb7b
Коммит 79e244f49a
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -742,7 +742,7 @@ void StmtPrinter::VisitStringLiteral(StringLiteral *Str) {
case StringLiteral::UTF32: OS << 'U'; break;
}
OS << '"';
static char Hex[] = "0123456789ABCDEF";
static const char Hex[] = "0123456789ABCDEF";
unsigned LastSlashX = Str->getLength();
for (unsigned I = 0, N = Str->getLength(); I != N; ++I) {

Просмотреть файл

@ -6426,7 +6426,7 @@ class BuiltinOperatorOverloadBuilder {
enum PromotedType {
Flt, Dbl, LDbl, SI, SL, SLL, UI, UL, ULL, Dep=-1
};
static PromotedType ConversionsTable[LastPromotedArithmeticType]
static const PromotedType ConversionsTable[LastPromotedArithmeticType]
[LastPromotedArithmeticType] = {
/* Flt*/ { Flt, Dbl, LDbl, Flt, Flt, Flt, Flt, Flt, Flt },
/* Dbl*/ { Dbl, Dbl, LDbl, Dbl, Dbl, Dbl, Dbl, Dbl, Dbl },