[PATCH] D43092: [DebugInfo] Prevent infinite recursion for malformed DWARF

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 8 15:06:45 PST 2018


aprantl added inline comments.


================
Comment at: llvm/lib/DebugInfo/DWARF/DWARFDie.cpp:312
   if (auto Die = getAttributeValueAsReferencedDie(DW_AT_abstract_origin)) {
+    if (Die.getOffset() == getOffset())
+      return None;
----------------
Perhaps add a comment what this means?


Repository:
  rL LLVM

https://reviews.llvm.org/D43092





More information about the llvm-commits mailing list