We can now call member functions where the base is a pointer.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70579 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp
index cfb93b9..2cb76ab 100644
--- a/lib/CodeGen/CGCXX.cpp
+++ b/lib/CodeGen/CGCXX.cpp
@@ -91,11 +91,8 @@
   
   llvm::Value *BaseValue = 0;
   
-  // There's a deref operator node added in Sema::BuildCallToMemberFunction
-  // that's giving the wrong type for -> call exprs so we just ignore them
-  // for now.
   if (ME->isArrow())
-    return EmitUnsupportedRValue(CE, "C++ member call expr");
+    BaseValue = EmitScalarExpr(ME->getBase());
   else {
     LValue BaseLV = EmitLValue(ME->getBase());
     BaseValue = BaseLV.getAddress();