From 5d37e32a5bfefacdd7b4d0664199d72c703d489d Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Fri, 9 Nov 2007 15:00:03 +0000 Subject: [PATCH] Recognize ObjCStringLiteral as a constant expression. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43946 91177308-0d34-0410-b5e6-96231b3b80d8 --- AST/Expr.cpp | 1 + 1 file changed, 1 insertion(+) 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: -- 2.40.0