[PATCH] D85437: [DebugInfo] Fix initialization of DwarfCompileUnit::LabelBegin.

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 6 12:45:04 PDT 2020


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


================
Comment at: llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h:302
   MCSymbol *getLabelBegin() const {
-    assert(getSection());
+    assert(LabelBegin);
     return LabelBegin;
----------------
can you add an `&& "some meaningful message"` to hint at what went wrong?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D85437



More information about the llvm-commits mailing list