diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2013-06-13 21:50:44 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2013-06-13 21:50:44 +0000 |
commit | d4b6e7a9b736539bf51f171c645a5ed8f66ae679 (patch) | |
tree | 1910e49ffbeb68e7a2d49688641ced2850373b8a /clang/lib/CodeGen/CodeGenModule.h | |
parent | 5f81f48bd4c9e18c341415031209653f0d980932 (diff) | |
download | bcm5719-llvm-d4b6e7a9b736539bf51f171c645a5ed8f66ae679.tar.gz bcm5719-llvm-d4b6e7a9b736539bf51f171c645a5ed8f66ae679.zip |
Fix the linkage of static locals inside a CapturedStmt. (Found in the
process of trying to fix the related issue for block literals.)
llvm-svn: 183951
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index ffb1243726e..6e5985d9bf1 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -925,6 +925,7 @@ public: void AddDependentLib(StringRef Lib); llvm::GlobalVariable::LinkageTypes getFunctionLinkage(GlobalDecl GD); + llvm::GlobalVariable::LinkageTypes getFunctionLinkage(const FunctionDecl *D); void setFunctionLinkage(GlobalDecl GD, llvm::GlobalValue *V) { V->setLinkage(getFunctionLinkage(GD)); |