mirror of
https://github.com/intel/llvm.git
synced 2026-02-05 22:17:23 +08:00
Fixed whitespace issue introduced in r160373.
llvm-svn: 160388
This commit is contained in:
@@ -569,15 +569,14 @@ 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,
|
||||
CGM.Int8PtrTy);
|
||||
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,
|
||||
CGM.Int8PtrTy);
|
||||
}
|
||||
|
||||
Init = PureVirtualFn;
|
||||
} else {
|
||||
// Check if we should use a thunk.
|
||||
|
||||
Reference in New Issue
Block a user