Skip to content

Commit

Permalink
[SCFToCalyx] Fix json naming when there are multiple components (#7980)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahanxie353 authored Dec 12, 2024
1 parent 87af795 commit 13a3020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Conversion/SCFToCalyx/SCFToCalyx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ class BuildOpGroups : public calyx::FuncOpPartialLoweringPattern {
if (auto fileLoc = dyn_cast<mlir::FileLineColLoc>(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);

Expand Down

0 comments on commit 13a3020

Please sign in to comment.