[all-commits] [llvm/llvm-project] d3b0e7: [CodeView] Avoid NULL deref of Scope

Mike Hommey via All-commits all-commits at lists.llvm.org
Thu Oct 6 23:35:20 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d3b0e745e8a3ead8cc2f0cc246c19c13f0c35ebb
      https://github.com/llvm/llvm-project/commit/d3b0e745e8a3ead8cc2f0cc246c19c13f0c35ebb
  Author: Mike Hommey <mh at glandium.org>
  Date:   2022-10-07 (Fri, 07 Oct 2022)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
    A llvm/test/DebugInfo/COFF/global_rust.ll

  Log Message:
  -----------
  [CodeView] Avoid NULL deref of Scope

Regression from D131400: cross-language LTO causes a crash in the
compiler on the NULL deref of Scope in `isa` call when Rust IR is
involved. Presumably, this might affect other languages too, and
even Rust itself without cross-language LTO when the Rust compiler
switched to LLVM 16.

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D134616




More information about the All-commits mailing list