Micro cleanup: use an array of const char, rather than an array of char, as the

type of the string literal implicitly used for a raw user-defined literal call.
No test; this has no semantic impact.

llvm-svn: 173309
This commit is contained in:
Richard Smith 2013-01-23 23:38:20 +00:00
parent 8bebe00a24
commit be8229c8c0
1 changed files with 1 additions and 1 deletions

View File

@ -2768,7 +2768,7 @@ ExprResult Sema::ActOnNumericConstant(const Token &Tok, Scope *UDLScope) {
SourceLocation TokLoc = Tok.getLocation();
unsigned Length = Literal.getUDSuffixOffset();
QualType StrTy = Context.getConstantArrayType(
Context.CharTy, llvm::APInt(32, Length + 1),
Context.CharTy.withConst(), llvm::APInt(32, Length + 1),
ArrayType::Normal, 0);
Expr *Lit = StringLiteral::Create(
Context, StringRef(TokSpelling.data(), Length), StringLiteral::Ascii,