[PATCH] D147994: Handle null dereference

Kan Shengchen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 11 00:39:12 PDT 2023


skan added inline comments.


================
Comment at: llvm/lib/CodeGen/WinEHPrepare.cpp:254
       auto *Call = dyn_cast<CallBase>(TI);
+      assert(Call);
       const Function *Fn = Call->getCalledFunction();
----------------
https://llvm.org/docs/CodingStandards.html#assert-liberally

 put some kind of error message in the assertion statement,


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D147994



More information about the llvm-commits mailing list