Chromium Code Reviews| Index: src/IceTranslator.cpp |
| diff --git a/src/IceTranslator.cpp b/src/IceTranslator.cpp |
| index c05f58dc1151a4fec5010c1fc452d999061c53a6..1f123ffa0c937b49b6648a50888ea7c8a4c9629e 100644 |
| --- a/src/IceTranslator.cpp |
| +++ b/src/IceTranslator.cpp |
| @@ -53,8 +53,9 @@ bool Translator::checkIfUnnamedNameSafe(const IceString &Name, const char *Kind, |
| return false; |
| } |
| -void Translator::translateFcn(Cfg *Func) { |
| - Ctx->cfgQueueBlockingPush(Func); |
| +void Translator::translateFcn(std::unique_ptr<Cfg> Func) { |
| + Cfg::updateTLS(nullptr); |
|
JF
2015/02/02 20:59:19
Comment on why you need this updateTLS.
Jim Stichnoth
2015/02/03 00:48:51
Gone now, so no comment needed. :)
|
| + Ctx->cfgQueueBlockingPush(std::move(Func)); |
| if (Ctx->getFlags().NumTranslationThreads == 0) { |
| Ctx->translateFunctions(); |
| } |