Simplify predicate.

llvm-svn: 64500
This commit is contained in:
Daniel Dunbar 2009-02-13 22:49:13 +00:00
parent 311bf2916b
commit 5db3ef6fbb
1 changed files with 1 additions and 3 deletions

View File

@ -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;
} }