These are uncommon and this is better than miscompiling.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192923
91177308-0d34-0410-b5e6-
96231b3b80d8
if (MD->isVirtual()) {
// FIXME: We have to instantiate a thunk that loads the vftable and jumps to
// the right offset.
+ CGM.ErrorUnsupported(MD, "pointer to virtual member function");
FirstField = llvm::Constant::getNullValue(CGM.VoidPtrTy);
} else {
const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>();