Skip to content

Commit f7dcb3b

Browse files
committed
[lib][arch] add = operator for t_metadata_value
1 parent 1063d31 commit f7dcb3b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

libs/libarchfpga/src/physical_types.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ class t_metadata_value {
9797
// Return string value.
9898
vtr::interned_string as_string() const { return value_; }
9999

100+
t_metadata_value& operator=(const t_metadata_value& o) noexcept {
101+
if (this != &o) {
102+
value_ = o.value_;
103+
}
104+
return *this;
105+
}
106+
100107
private:
101108
vtr::interned_string value_;
102109
};

libs/libarchfpga/src/read_xml_arch_file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ static std::pair<int, int> process_pin_string(pugi::xml_node Locations,
891891
if (port == nullptr) {
892892
archfpga_throw(loc_data.filename_c_str(), loc_data.line(Locations),
893893
vtr::string_fmt("Port %s for %s could not be found: %s\n",
894-
type->name.c_str(), token.data,
894+
type->name.c_str(), token.data.c_str(),
895895
pin_loc_string)
896896
.c_str());
897897
}

0 commit comments

Comments
 (0)