diff options
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 18870722fa2..af70a9c8464 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -468,7 +468,7 @@ void CodeGenModule::EmitGlobal(const ValueDecl *Global) { // If the global is a static, defer code generation until later so // we can easily omit unused statics. - if (isStatic) { + if (isStatic && !Features.EmitAllDecls) { StaticDecls.push_back(Global); return; } |