From 424c51d3d4bea87291919b75e73ca59386702ad5 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62960 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenTypes.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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. -- 2.40.0