parent
311bf2916b
commit
5db3ef6fbb
|
@ -542,9 +542,7 @@ void CodeGenModule::EmitGlobal(const ValueDecl *Global) {
|
||||||
assert(VD->isFileVarDecl() && "Cannot emit local var decl as global.");
|
assert(VD->isFileVarDecl() && "Cannot emit local var decl as global.");
|
||||||
|
|
||||||
// Forward declarations are emitted lazily on first use.
|
// Forward declarations are emitted lazily on first use.
|
||||||
if ((VD->getStorageClass() == VarDecl::Extern ||
|
if (!VD->getInit() && VD->hasExternalStorage())
|
||||||
VD->getStorageClass() == VarDecl::PrivateExtern) &&
|
|
||||||
VD->getInit() == 0)
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue