From 8b2540439f0f8377111caaae7e76a61f0c223f7d Mon Sep 17 00:00:00 2001 From: Sebastian Redl Date: Sun, 25 Jan 2009 13:35:30 +0000 Subject: [PATCH] Introduce an explicit case for member pointers in CodeGenTypes. However, it simply asserts. llvm-svn: 62960 --- clang/lib/CodeGen/CodeGenTypes.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/clang/lib/CodeGen/CodeGenTypes.cpp b/clang/lib/CodeGen/CodeGenTypes.cpp index 9e57aafa02a3..aac6e8d64406 100644 --- a/clang/lib/CodeGen/CodeGenTypes.cpp +++ b/clang/lib/CodeGen/CodeGenTypes.cpp @@ -312,6 +312,13 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) { return llvm::PointerType::get(ConvertTypeRecursive(FTy), FTy.getAddressSpace()); } + + case Type::MemberPointer: + // FIXME: Implement C++ pointer-to-member. The GCC representation is + // documented here: + // http://gcc.gnu.org/onlinedocs/gccint/Type-Layout.html#Type-Layout + assert(0 && "FIXME: We can't handle member pointers yet."); + return llvm::OpaqueType::get(); } // FIXME: implement.