]> granicus.if.org Git - clang/commitdiff
Recognize ObjCStringLiteral as a constant expression.
authorSteve Naroff <snaroff@apple.com>
Fri, 9 Nov 2007 15:00:03 +0000 (15:00 +0000)
committerSteve Naroff <snaroff@apple.com>
Fri, 9 Nov 2007 15:00:03 +0000 (15:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43946 91177308-0d34-0410-b5e6-96231b3b80d8

AST/Expr.cpp

index f323dffb1ce5ae92e37a8dca23b7f36f3fc33b44..910bdf93112120a0e0324022c9843c8665198305 100644 (file)
@@ -365,6 +365,7 @@ bool Expr::isConstantExpr(ASTContext &Ctx, SourceLocation *Loc) const {
   case ParenExprClass:
     return cast<ParenExpr>(this)->getSubExpr()->isConstantExpr(Ctx, Loc);
   case StringLiteralClass:
+  case ObjCStringLiteralClass:
   case FloatingLiteralClass:
   case IntegerLiteralClass:
   case CharacterLiteralClass: