aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-11-09 15:00:03 +0000
committerSteve Naroff <snaroff@apple.com>2007-11-09 15:00:03 +0000
commit5d37e32a5bfefacdd7b4d0664199d72c703d489d (patch)
tree32fe3bc69b6cf934921495e6c342a1895b79c9b3
parent32174826f58d38c20f376fe64ceac4a278133883 (diff)
Recognize ObjCStringLiteral as a constant expression.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43946 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--AST/Expr.cpp1
1 files changed, 1 insertions, 0 deletions
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<ParenExpr>(this)->getSubExpr()->isConstantExpr(Ctx, Loc);
case StringLiteralClass:
+ case ObjCStringLiteralClass:
case FloatingLiteralClass:
case IntegerLiteralClass:
case CharacterLiteralClass: