[Lldb-commits] [PATCH] D61438: [ASTImporter] Use llvm::Expected and Error in the importer API
Stefan Gränitz via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sat May 4 06:50:14 PDT 2019
sgraenitz added inline comments.
================
Comment at: lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp:1980
+ }
+ return *type_or_error;
}
----------------
>>! In D61438#1490102, @jingham wrote:
> [...] include the contents of that error n the log message?
e.g:
```
if (auto type_owner = merger.ImporterForOrigin(from_context).Import(type)) {
return *type_owner;
} else {
Log *log = lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_EXPRESSIONS);
LLDB_LOG_ERROR(log, type_owner.takeError(), "Couldn't import type: {0}")
return QualType();
}
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61438/new/
https://reviews.llvm.org/D61438
More information about the lldb-commits
mailing list