diff --git a/compiler/lib/Support/CompilerEngine.cpp b/compiler/lib/Support/CompilerEngine.cpp index 32c926f23..c3ff2b323 100644 --- a/compiler/lib/Support/CompilerEngine.cpp +++ b/compiler/lib/Support/CompilerEngine.cpp @@ -542,9 +542,11 @@ llvm::Expected CompilerEngine::Library::emitCppHeader() { out << " static const std::string name = \"" << params.functionName << "\";\n"; out << "\n"; - out << " static outcome::checked\n"; + out << " static outcome::checked<" << params.functionName + << "_t, StringError>\n"; out << " load(std::string outputLib)\n"; - out << " { return extract_t::load(name, outputLib); }\n"; + out << " { return " << params.functionName + << "_t::load(name, outputLib); }\n"; out << "} // namespace " << params.functionName << "\n"; } out << "\n";