Jon Ross-Perkins
2022-10-18 12:57:31 -07:00
committed by GitHub
parent 3578f2b214
commit 1c5770452e
5 changed files with 44 additions and 59 deletions
+1 -2
View File
@@ -12,8 +12,7 @@
namespace Carbon {
auto StaticScope::Add(const std::string& name, ValueNodeView entity,
NameStatus status /* = NameStatus::Usable*/)
-> ErrorOr<Success> {
NameStatus status) -> ErrorOr<Success> {
auto [it, inserted] = declared_names_.insert({name, {entity, status}});
if (!inserted) {
if (it->second.entity != entity) {