summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-05-05 22:55:13 +0000
committerChris Lattner <sabre@nondot.org>2010-05-05 22:55:13 +0000
commit3baada6fd7f10407cabb6e005a33cb8409d68ac7 (patch)
tree618825c2dfc32f55b750c80d987eebab55bf12b9 /clang/lib/CodeGen
parent7e60a6bd712cf2e587b0b149d78966000cd9d5e5 (diff)
downloadbcm5719-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.cpp2
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,
OpenPOWER on IntegriCloud