[cfe-commits] r173309 - /cfe/trunk/lib/Sema/SemaExpr.cpp

Richard Smith richard-llvm at metafoo.co.uk
Wed Jan 23 15:38:20 PST 2013


Author: rsmith
Date: Wed Jan 23 17:38:20 2013
New Revision: 173309

URL: http://llvm.org/viewvc/llvm-project?rev=173309&view=rev
Log:
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.

Modified:
    cfe/trunk/lib/Sema/SemaExpr.cpp

Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=173309&r1=173308&r2=173309&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Wed Jan 23 17:38:20 2013
@@ -2768,7 +2768,7 @@
       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,





More information about the cfe-commits mailing list