[PATCH] D82630: [ObjectYAML][DWARF] Collect diagnostic message when YAMLParser fails.
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 28 12:23:40 PDT 2020
MaskRay accepted this revision.
MaskRay added a comment.
Thanks!
================
Comment at: llvm/lib/ObjectYAML/DWARFEmitter.cpp:476
+ auto CollectDiagnostic = [](const SMDiagnostic &Diag, void *DiagContext) {
+ SMDiagnostic *DiagOut = static_cast<SMDiagnostic *>(DiagContext);
+ *DiagOut = Diag;
----------------
`*static_cast<SMDiagnostic *>(DiagContext) = Diag;`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82630/new/
https://reviews.llvm.org/D82630
More information about the llvm-commits
mailing list