[PATCH] D39294: [llvm-dwarfdump] - Teach verifier to report broken DWARF expressions.

Jonas Devlieghere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 25 14:00:32 PDT 2017


JDevlieghere added inline comments.


================
Comment at: lib/DebugInfo/DWARF/DWARFVerifier.cpp:424
+    DWARFUnit *U = Die.getDwarfUnit();
+    DataExtractor Data(StringRef((const char *)Expr->data(), Expr->size()),
+                       DCtx.isLittleEndian(), 0);
----------------
I don't think we can avoid the cast, but let's use reinterpret_cast here.  


https://reviews.llvm.org/D39294





More information about the llvm-commits mailing list