From: Sebastian Redl Date: Sun, 25 Jan 2009 13:35:30 +0000 (+0000) Subject: Introduce an explicit case for member pointers in CodeGenTypes. However, it simply... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=424c51d3d4bea87291919b75e73ca59386702ad5;p=clang Introduce an explicit case for member pointers in CodeGenTypes. However, it simply asserts. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62960 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index 9e57aafa02..aac6e8d644 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/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.