Const parameter in function (backends/firrtl/firrtl.cc)
authorSahand Kashani-Akhavan <sahand.kashani@gmail.com>
Mon, 23 Mar 2020 07:56:28 +0000 (08:56 +0100)
committerGitHub <noreply@github.com>
Mon, 23 Mar 2020 07:56:28 +0000 (08:56 +0100)
Co-Authored-By: Alberto Gonzalez <61295559+boqwxp@users.noreply.github.com>
backends/firrtl/firrtl.cc

index a6cb9cfbee17241dddaf3a7e0acb30345639f07c..a4bfe854975de54b8e4ed541c375598f42b9a7c8 100644 (file)
@@ -96,7 +96,7 @@ void dump_const(std::ostream &f, const RTLIL::Const &data, int width = -1, int o
        }
 }
 
-std::string getFileinfo(dict<RTLIL::IdString, RTLIL::Const> attributes)
+std::string getFileinfo(const dict<RTLIL::IdString, RTLIL::Const> &attributes)
 {
        std::ostringstream fileinfo;
        for (auto &it : attributes) {