From 0e17372b380467ac8339afdec992fbf887a11feb Mon Sep 17 00:00:00 2001 From: Jonas Hahnfeld Date: Thu, 17 Aug 2023 14:21:39 +0200 Subject: Revert "[CodeGen] Keep track of eagerly emitted globals" The added test doesn't work on Windows: https://lab.llvm.org/buildbot/#/builders/216/builds/25769 This reverts commit f8dadefd4afc8e1b7b9a1e69a0ba8df051e03328. --- clang/lib/CodeGen/CodeGenModule.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 440fb040a43c..517af514d9c9 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -3658,7 +3658,6 @@ void CodeGenModule::EmitGlobal(GlobalDecl GD) { if (MustBeEmitted(Global) && MayBeEmittedEagerly(Global)) { // Emit the definition if it can't be deferred. EmitGlobalDefinition(GD); - addEmittedDeferredDecl(GD); return; } -- cgit v1.2.3