diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-05-26 01:22:57 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-05-26 01:22:57 +0000 |
commit | c6c14d1cd68afcd90d097715296377f15be45210 (patch) | |
tree | f5c3a779c2b0deea975ff96cc3453cfd1ff19d19 /lib/CodeGen/CodeGenModule.h | |
parent | e9263729b701cb02201907c6942cada72d5eefbf (diff) |
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
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | lib/CodeGen/CodeGenModule.h | 5 |
1 files changed, 3 insertions, 2 deletions
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. |