aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/util/rust-hir-map.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/util/rust-hir-map.cc')
-rw-r--r--gcc/rust/util/rust-hir-map.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/rust/util/rust-hir-map.cc b/gcc/rust/util/rust-hir-map.cc
index 8ac957f..7041aaa 100644
--- a/gcc/rust/util/rust-hir-map.cc
+++ b/gcc/rust/util/rust-hir-map.cc
@@ -978,6 +978,7 @@ Mappings::lookup_derive_proc_macros (CrateNum num)
auto it = procmacrosDeriveMappings.find (num);
if (it == procmacrosDeriveMappings.end ())
return tl::nullopt;
+
return it->second;
}
@@ -987,6 +988,7 @@ Mappings::lookup_bang_proc_macros (CrateNum num)
auto it = procmacrosBangMappings.find (num);
if (it == procmacrosBangMappings.end ())
return tl::nullopt;
+
return it->second;
}
@@ -996,6 +998,7 @@ Mappings::lookup_attribute_proc_macros (CrateNum num)
auto it = procmacrosAttributeMappings.find (num);
if (it == procmacrosAttributeMappings.end ())
return tl::nullopt;
+
return it->second;
}