[PATCH] D146791: Guard against dereferencing a nullptr

Kan Shengchen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 14 05:01:00 PDT 2023


skan accepted this revision.
skan added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/SIFrameLowering.cpp:1353
                                                 TRI->isAGPR(MRI, VReg))) {
+            assert(RS != nullptr);
             // FIXME: change to enterBasicBlockEnd()
----------------
Error message?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D146791



More information about the llvm-commits mailing list