From 13a3020add5683efc2b90d61c72e535cfbb37ad5 Mon Sep 17 00:00:00 2001 From: Jiahan Xie <88367305+jiahanxie353@users.noreply.github.com> Date: Thu, 12 Dec 2024 17:00:12 -0500 Subject: [PATCH] [SCFToCalyx] Fix json naming when there are multiple components (#7980) --- lib/Conversion/SCFToCalyx/SCFToCalyx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);