diff options
author | Joao Matos <ripzonetriton@gmail.com> | 2012-07-17 19:17:58 +0000 |
---|---|---|
committer | Joao Matos <ripzonetriton@gmail.com> | 2012-07-17 19:17:58 +0000 |
commit | 718a883c5f5a31ab714a6325c93094efe295e012 (patch) | |
tree | f2af9ee802b7c7e8d3f3d0f01dc0cdbcadc68dd1 /clang/lib/CodeGen | |
parent | e6a3b03ee05332a96f61c39759658bbab7bd6783 (diff) | |
download | bcm5719-llvm-718a883c5f5a31ab714a6325c93094efe295e012.tar.gz bcm5719-llvm-718a883c5f5a31ab714a6325c93094efe295e012.zip |
Fixed whitespace issue introduced in r160373.
llvm-svn: 160388
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGVTables.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/CGVTables.cpp b/clang/lib/CodeGen/CGVTables.cpp index c2c42f6e006..3c0dd5d56b5 100644 --- a/clang/lib/CodeGen/CGVTables.cpp +++ b/clang/lib/CodeGen/CGVTables.cpp @@ -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. |