forked from OSchip/llvm-project
parent
5527442d11
commit
48a3291675
|
@ -573,11 +573,11 @@ CodeGenVTables::CreateVTableInitializer(const CXXRecordDecl *RD,
|
|||
if (cast<CXXMethodDecl>(GD.getDecl())->isPure()) {
|
||||
// We have a pure virtual member function.
|
||||
if (!PureVirtualFn) {
|
||||
llvm::FunctionType *Ty =
|
||||
llvm::FunctionType::get(CGM.VoidTy, /*isVarArg=*/false);
|
||||
StringRef PureCallName = CGM.getCXXABI().GetPureVirtualCallName();
|
||||
PureVirtualFn = CGM.CreateRuntimeFunction(Ty, PureCallName);
|
||||
PureVirtualFn = llvm::ConstantExpr::getBitCast(PureVirtualFn,
|
||||
llvm::FunctionType *Ty =
|
||||
llvm::FunctionType::get(CGM.VoidTy, /*isVarArg=*/false);
|
||||
StringRef PureCallName = CGM.getCXXABI().GetPureVirtualCallName();
|
||||
PureVirtualFn = CGM.CreateRuntimeFunction(Ty, PureCallName);
|
||||
PureVirtualFn = llvm::ConstantExpr::getBitCast(PureVirtualFn,
|
||||
CGM.Int8PtrTy);
|
||||
}
|
||||
Init = PureVirtualFn;
|
||||
|
|
Loading…
Reference in New Issue