From c6c14d1cd68afcd90d097715296377f15be45210 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Tue, 26 May 2009 01:22:57 +0000 Subject: Handle the edge case of a weak function with incomplete type correctly. Found by code inspection; I haven't seen this in real-world code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72408 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/CodeGenModule.h') diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index 5c780e755b..4d50e8946b 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -397,12 +397,13 @@ private: /// SetFunctionDefinitionAttributes - Set attributes for a global definition. void SetFunctionDefinitionAttributes(const FunctionDecl *D, - llvm::GlobalValue *GV); + llvm::GlobalValue *GV); /// SetFunctionAttributes - Set function attributes for a function /// declaration. void SetFunctionAttributes(const FunctionDecl *FD, - llvm::Function *F); + llvm::Function *F, + bool IsIncompleteFunction); /// EmitGlobal - Emit code for a singal global function or var decl. Forward /// declarations are emitted lazily. -- cgit v1.2.3