From 3dad49f2b60353638586ad1893a72f335618f919 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Fri, 1 May 2009 21:55:16 +0000 Subject: [PATCH] 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 --- lib/CodeGen/CGCXX.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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(); -- 2.40.0