[Lldb-commits] [PATCH] D119178: Add support for generating debug-info for structured bindings of structs and arrays

Adrian Prantl via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 16 12:42:39 PST 2022


aprantl accepted this revision.
aprantl added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/lib/CodeGen/CGDebugInfo.cpp:4647
+                                                const bool UsePointerValue) {
+  assert(CGM.getCodeGenOpts().hasReducedDebugInfo());
+  assert(!LexicalBlockStack.empty() && "Region stack mismatch, stack empty!");
----------------
shafik wrote:
> aprantl wrote:
> > do you need a 
> > ```
> >  if (DebugKind > codegenoptions::LimitedDebugInfo)
> >   return
> > ```
> > 
> > here?
> That kind of check is only used in limited places, why would it apply here as let's say opposed to the `EmitDeclare` for `VarDecl` case?
I think the answer is that Ty would be null then.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119178/new/

https://reviews.llvm.org/D119178



More information about the lldb-commits mailing list