From: Joao Matos Date: Tue, 17 Jul 2012 19:17:58 +0000 (+0000) Subject: Fixed whitespace issue introduced in r160373. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e9af3e66cffa1b3d6dc75433b8a9673ecae33044;p=clang Fixed whitespace issue introduced in r160373. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160388 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGVTables.cpp b/lib/CodeGen/CGVTables.cpp index c2c42f6e00..3c0dd5d56b 100644 --- a/lib/CodeGen/CGVTables.cpp +++ b/lib/CodeGen/CGVTables.cpp @@ -569,15 +569,14 @@ CodeGenVTables::CreateVTableInitializer(const CXXRecordDecl *RD, if (cast(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.