Index: llvm/trunk/lib/ExecutionEngine/Orc/Layer.cpp =================================================================== --- llvm/trunk/lib/ExecutionEngine/Orc/Layer.cpp +++ llvm/trunk/lib/ExecutionEngine/Orc/Layer.cpp @@ -51,7 +51,7 @@ StringRef IRMaterializationUnit::getName() const { if (TSM) return TSM.withModuleDo( - [](const Module &M) { return M.getModuleIdentifier(); }); + [](const Module &M) -> StringRef { return M.getModuleIdentifier(); }); return ""; }