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/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index f75c392..626e829 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -99,6 +99,11 @@
                                  static_cast<Expr*>(SelfExpr.Val), true, true);
       }
     }
+    if (!strncmp(II.getName(), "super", 5)) {
+      QualType T = Context.getPointerType(Context.getObjCInterfaceType(
+                     CurMethodDecl->getClassInterface()));
+      return new ObjCSuperRefExpr(T, Loc);
+    }
   }
   
   if (D == 0) {