aboutsummaryrefslogtreecommitdiffstats
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/json/jsonparse.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/json/jsonparse.cc b/frontend/json/jsonparse.cc
index 0f8fb48c..25b01e44 100644
--- a/frontend/json/jsonparse.cc
+++ b/frontend/json/jsonparse.cc
@@ -646,7 +646,7 @@ struct JsonFrontend {
virtual void help()
{
}
- virtual void execute(std::istream *&f, std::string filename,
+ virtual void execute(std::istream *&f, std::string &filename,
Design *design)
{
// log_header(design, "Executing JSON frontend.\n");
@@ -671,7 +671,7 @@ struct JsonFrontend {
}; // End Namespace JsonParser
-void parse_json_file(std::istream *&f, std::string filename, Design *design){
+void parse_json_file(std::istream *&f, std::string &filename, Design *design){
auto *parser = new JsonParser::JsonFrontend();
parser->execute(f, filename, design);
}