diff --git a/lib/Conversion/SCFToCalyx/SCFToCalyx.cpp b/lib/Conversion/SCFToCalyx/SCFToCalyx.cpp index 76a25fa08fbe..3bad5b8bd293 100644 --- a/lib/Conversion/SCFToCalyx/SCFToCalyx.cpp +++ b/lib/Conversion/SCFToCalyx/SCFToCalyx.cpp @@ -325,7 +325,7 @@ class BuildOpGroups : public calyx::FuncOpPartialLoweringPattern { if (auto fileLoc = dyn_cast(funcOp->getLoc())) { std::string filename = fileLoc.getFilename().str(); std::filesystem::path path(filename); - std::string jsonFileName = writeJson.append(".json"); + std::string jsonFileName = writeJson.getValue() + ".json"; auto outFileName = path.parent_path().append(jsonFileName); std::ofstream outFile(outFileName);