From: Anders Carlsson Date: Fri, 1 May 2009 21:55:16 +0000 (+0000) Subject: We can now call member functions where the base is a pointer. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3dad49f2b60353638586ad1893a72f335618f919;p=clang 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 cfb93b90d7..2cb76ab9d9 100644 --- a/lib/CodeGen/CGCXX.cpp +++ b/lib/CodeGen/CGCXX.cpp @@ -91,11 +91,8 @@ RValue CodeGenFunction::EmitCXXMemberCallExpr(const CXXMemberCallExpr *CE) { 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();