Fix <rdar://problem/5979875> clang on xcode: error: use of undeclared identifier 'super'
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51888 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp
index 6b0eb04..357d711 100644
--- a/lib/AST/Expr.cpp
+++ b/lib/AST/Expr.cpp
@@ -1189,7 +1189,7 @@
return reinterpret_cast<Stmt**>(&Base)+1;
}
-// ObjCIvarRefExpr
+// ObjCPropertyRefExpr
Stmt::child_iterator ObjCPropertyRefExpr::child_begin() {
return reinterpret_cast<Stmt**>(&Base);
}
@@ -1198,6 +1198,10 @@
return reinterpret_cast<Stmt**>(&Base)+1;
}
+// ObjCSuperRefExpr
+Stmt::child_iterator ObjCSuperRefExpr::child_begin() { return child_iterator();}
+Stmt::child_iterator ObjCSuperRefExpr::child_end() { return child_iterator(); }
+
// PreDefinedExpr
Stmt::child_iterator PreDefinedExpr::child_begin() { return child_iterator(); }
Stmt::child_iterator PreDefinedExpr::child_end() { return child_iterator(); }