зеркало из https://github.com/microsoft/clang-1.git
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173309 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
2f169f8645
Коммит
4ea6a646af
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче