Index: src/IceTranslator.cpp |
diff --git a/src/IceTranslator.cpp b/src/IceTranslator.cpp |
index c05f58dc1151a4fec5010c1fc452d999061c53a6..4753b228dbb82a4965f0b6b0bf744b5934497cfd 100644 |
--- a/src/IceTranslator.cpp |
+++ b/src/IceTranslator.cpp |
@@ -53,8 +53,8 @@ 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) { |
+ Ctx->cfgQueueBlockingPush(std::move(Func)); |
if (Ctx->getFlags().NumTranslationThreads == 0) { |
Ctx->translateFunctions(); |
} |