[PATCH] D147975: [StackProtector] don't check stack protector before calling nounwind functions

LuoYuanke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 12 01:04:24 PDT 2023


LuoYuanke added a comment.

> We could consider trying to encode more information into the IR, I guess.  In a lot of cases, we know a "noreturn nounwind" function is abort()-like, and not longjmp()-like; we just don't bother recording it anywhere because nothing cared before this.

In IR if a function call is within try{} block, front-end should generate invoke instruction, so we may just check if the callsite is invoke instruction.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D147975



More information about the llvm-commits mailing list