[cfe-commits] r64500 - /cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Daniel Dunbar
daniel at zuster.org
Fri Feb 13 14:49:13 PST 2009
Author: ddunbar
Date: Fri Feb 13 16:49:13 2009
New Revision: 64500
URL: http://llvm.org/viewvc/llvm-project?rev=64500&view=rev
Log:
Simplify predicate.
Modified:
cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=64500&r1=64499&r2=64500&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Fri Feb 13 16:49:13 2009
@@ -542,9 +542,7 @@
assert(VD->isFileVarDecl() && "Cannot emit local var decl as global.");
// Forward declarations are emitted lazily on first use.
- if ((VD->getStorageClass() == VarDecl::Extern ||
- VD->getStorageClass() == VarDecl::PrivateExtern) &&
- VD->getInit() == 0)
+ if (!VD->getInit() && VD->hasExternalStorage())
return;
}
More information about the cfe-commits
mailing list