[PATCH] D40199: llvm-dwarfdump --verify is incorrectly saying all DW_AT_location attributes with locations lists are invalid.

Paul Robinson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 17 15:16:01 PST 2017


probinson added inline comments.


================
Comment at: lib/DebugInfo/DWARF/DWARFVerifier.cpp:431
+      // Location list
+      if (auto LocOffset = AttrValue.Value.getAsUnsignedConstant()) {
+        auto DebugLoc = DCtx.getDebugLoc();
----------------
Looks like this path is missing a couple of opportunities to detect invalid references.


Repository:
  rL LLVM

https://reviews.llvm.org/D40199





More information about the llvm-commits mailing list