[cfe-commits] r70579 - /cfe/trunk/lib/CodeGen/CGCXX.cpp

Anders Carlsson andersca at mac.com
Fri May 1 14:55:17 PDT 2009


Author: andersca
Date: Fri May  1 16:55:16 2009
New Revision: 70579

URL: http://llvm.org/viewvc/llvm-project?rev=70579&view=rev
Log:
We can now call member functions where the base is a pointer.

Modified:
    cfe/trunk/lib/CodeGen/CGCXX.cpp

Modified: cfe/trunk/lib/CodeGen/CGCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCXX.cpp?rev=70579&r1=70578&r2=70579&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGCXX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCXX.cpp Fri May  1 16:55:16 2009
@@ -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();





More information about the cfe-commits mailing list