Index: src/PNaClTranslator.cpp |
diff --git a/src/PNaClTranslator.cpp b/src/PNaClTranslator.cpp |
index 01ba264aed3f53cd3b6df77c6ca8386d24261934..a772e1005249bc7c6d4b6db1332738a40e7d9a7c 100644 |
--- a/src/PNaClTranslator.cpp |
+++ b/src/PNaClTranslator.cpp |
@@ -32,8 +32,6 @@ |
#include "IceOperand.h" |
#include "PNaClTranslator.h" |
-#include <memory> |
- |
namespace { |
using namespace llvm; |
@@ -2822,6 +2820,7 @@ private: |
void ExitBlock() override { |
InstallGlobalNamesAndGlobalVarInitializers(); |
+ getTranslator().getContext()->waitForWorkerThreads(); |
getTranslator().emitConstants(); |
} |