Jon Ross-Perkins authored and GitHub committed 2022-10-18 12:57:31 -07:00
1 parent 3578f2b214
commit 1c5770452e
5 files changed
+44 -59

No files matched your search

+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) {