JDevlieghere added inline comments.

================
Comment at: source/API/SBModule.cpp:525
           module_sp->GetTypeSystemForLanguage(eLanguageTypeC);
-      if (type_system) {
-        CompilerType compiler_type = type_system->GetBuiltinTypeByName(name);
+      if (auto err = type_system_or_err.takeError()) {
+        llvm::consumeError(std::move(err));
----------------
Any reason you do this instead of

```if (!type_system_or_err) {
  llvm::consumeError(type_system_or_err.takeError());
...
```


================
Comment at: source/API/SBModule.cpp:493
+      llvm::consumeError(std::move(err));
+    } else {
+      return LLDB_RECORD_RESULT(
----------------
No else before return?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65122/new/

https://reviews.llvm.org/D65122



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to