[PATCH] D124133: [BOLT][DWARF] Handles Error returned by visitLocationList.
Maksim Panchenko via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 20 15:55:48 PDT 2022
maksfb added inline comments.
================
Comment at: bolt/lib/Rewrite/DWARFRewriter.cpp:465-466
if (E || InputLL.empty()) {
+ DIDumpOptions DumpOpts;
+ DumpOpts.WarningHandler(std::move(E));
errs() << "BOLT-WARNING: empty location list detected at 0x"
----------------
Can you try `consumeError(E);` instead?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124133/new/
https://reviews.llvm.org/D124133
More information about the llvm-commits
mailing list