diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-05-05 22:55:13 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-05-05 22:55:13 +0000 |
| commit | 3baada6fd7f10407cabb6e005a33cb8409d68ac7 (patch) | |
| tree | 618825c2dfc32f55b750c80d987eebab55bf12b9 /clang/lib/CodeGen | |
| parent | 7e60a6bd712cf2e587b0b149d78966000cd9d5e5 (diff) | |
| download | bcm5719-llvm-3baada6fd7f10407cabb6e005a33cb8409d68ac7.tar.gz bcm5719-llvm-3baada6fd7f10407cabb6e005a33cb8409d68ac7.zip | |
Pass the globaldecl into GetOrCreateLLVMFunction so that llvm
function attributes like byval get applied to the function
definition. This fixes PR7058 and makes i386 llvm/clang bootstrap
pass all the same tests as x86-64 bootstrap for me (the llvmc
tests still fail in both).
llvm-svn: 103131
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGVTables.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGVTables.cpp b/clang/lib/CodeGen/CGVTables.cpp index 159753aa359..b18f91b8764 100644 --- a/clang/lib/CodeGen/CGVTables.cpp +++ b/clang/lib/CodeGen/CGVTables.cpp @@ -2548,7 +2548,7 @@ llvm::Constant *CodeGenModule::GetAddrOfThunk(GlobalDecl GD, getMangleContext().mangleThunk(MD, Thunk, Name); const llvm::Type *Ty = getTypes().GetFunctionTypeForVTable(MD); - return GetOrCreateLLVMFunction(Name, Ty, GlobalDecl()); + return GetOrCreateLLVMFunction(Name, Ty, GD); } static llvm::Value *PerformTypeAdjustment(CodeGenFunction &CGF, |

