================
@@ -171,6 +186,12 @@ struct InfoTreeNode {
     return It;
   }
 
+  std::optional<InfoTreeNode *> get(DeviceInfo Info) {
+    if (DeviceInfoMap.count(Info))
+      return &(*Children)[DeviceInfoMap[Info]];
+    return std::nullopt;
----------------
jhuber6 wrote:

```suggestion
    return !DeviceInfoMap.count(Info) std::nullopt : 
&(*Children)[DeviceInfoMap[Info]];
```

https://github.com/llvm/llvm-project/pull/147317
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to