summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-01-23 23:38:20 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-01-23 23:38:20 +0000
commitbe8229c8c0d3711942be72d38a2f59d0ee985520 (patch)
tree3091e0c674cdaad66e7569c34536c66bdc81f140
parent8bebe00a24aaecf1ef40995da7bc0a399a0e9678 (diff)
downloadbcm5719-llvm-be8229c8c0d3711942be72d38a2f59d0ee985520.tar.gz
bcm5719-llvm-be8229c8c0d3711942be72d38a2f59d0ee985520.zip
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
-rw-r--r--clang/lib/Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 2e1188164db..fd165aca89e 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -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,
OpenPOWER on IntegriCloud