diff options
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index cd049a27c1b..a39ba2f7d06 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -370,7 +370,7 @@ Sema::ActOnStringLiteral(const Token *StringToks, unsigned NumStringToks) {    if (Literal.Pascal) StrTy = Context.UnsignedCharTy;    // A C++ string literal has a const-qualified element type (C++ 2.13.4p1). -  if (getLangOptions().CPlusPlus) +  if (getLangOptions().CPlusPlus || getLangOptions().ConstStrings )      StrTy.addConst();    // Get an array type for the string, according to C99 6.4.5.  This includes | 

