aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Expr.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-06-17 19:56:20 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-06-17 19:56:20 +0000
commit03b2960c14aede6ac82bdef32247094ebb72fa69 (patch)
treea87d426901125623b1351466e4d3a8504f4fb09d /lib/AST/Expr.cpp
parente4ee9663168dfb2b4122c768091e30217328c9fa (diff)
Objective-c++ IRGen. Support for @selector expression as
an lvalue. Fixes PR7390. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106235 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r--lib/AST/Expr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp
index e36ae41ce4..1d715b004d 100644
--- a/lib/AST/Expr.cpp
+++ b/lib/AST/Expr.cpp
@@ -1194,6 +1194,7 @@ Expr::isLvalueResult Expr::isLvalueInternal(ASTContext &Ctx) const {
case ObjCIsaExprClass:
case StringLiteralClass: // C99 6.5.1p4
case ObjCEncodeExprClass: // @encode behaves like its string in every way.
+ case ObjCSelectorExprClass: // @selector
return LV_Valid;
case ArraySubscriptExprClass: // C99 6.5.3p4 (e1[e2] == (*((e1)+(e2))))
// For vectors, make sure base is an lvalue (i.e. not a function call).