From: Steve Naroff Date: Fri, 9 Nov 2007 15:00:03 +0000 (+0000) Subject: Recognize ObjCStringLiteral as a constant expression. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d37e32a5bfefacdd7b4d0664199d72c703d489d;p=clang Recognize ObjCStringLiteral as a constant expression. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43946 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/AST/Expr.cpp b/AST/Expr.cpp index f323dffb1c..910bdf9311 100644 --- a/AST/Expr.cpp +++ b/AST/Expr.cpp @@ -365,6 +365,7 @@ bool Expr::isConstantExpr(ASTContext &Ctx, SourceLocation *Loc) const { case ParenExprClass: return cast(this)->getSubExpr()->isConstantExpr(Ctx, Loc); case StringLiteralClass: + case ObjCStringLiteralClass: case FloatingLiteralClass: case IntegerLiteralClass: case CharacterLiteralClass: