[all-commits] [llvm/llvm-project] 25bcf1: [RISCV] Fix assertion failure when using -fstack-c...

Paul Kirth via All-commits all-commits at lists.llvm.org
Tue Jul 8 14:32:14 PDT 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 25bcf1145fd78e945eda6d9c72bde9b8e294b6b3
      https://github.com/llvm/llvm-project/commit/25bcf1145fd78e945eda6d9c72bde9b8e294b6b3
  Author: Paul Kirth <paulkirth at google.com>
  Date:   2025-07-08 (Tue, 08 Jul 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
    A llvm/test/CodeGen/RISCV/pr135206.ll

  Log Message:
  -----------
  [RISCV] Fix assertion failure when using -fstack-clash-protection (#135248)

We can't assume MBBI is still pointing at MBB if we've already expanded
a probe. We need to re-query the MBB from MBBI. Fixes #135206

Co-authored-by: Craig Topper <craig.topper at sifive.com>
(cherry picked from commit b3d2dc321c5c78b7204696afe07fe6ef3375acfd)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list