Implement extern block var.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47223 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/CodeGen/CGDecl.cpp b/CodeGen/CGDecl.cpp
index d8e8f4e..cd31fa7 100644
--- a/CodeGen/CGDecl.cpp
+++ b/CodeGen/CGDecl.cpp
@@ -54,7 +54,8 @@
case VarDecl::Static:
return EmitStaticBlockVarDecl(D);
case VarDecl::Extern:
- assert(0 && "FIXME: should call up to codegenmodule");
+ // Don't emit it now, allow it to be emitted lazily on its first use.
+ return;
default:
assert((D.getStorageClass() == VarDecl::None ||
D.getStorageClass() == VarDecl::Auto ||