[PATCH] D83906: [CodeGen] Emit a call instruction instead of an invoke if the called llvm function is marked nounwind

Sanjoy Das via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 9 15:14:15 PST 2023


sanjoy added a comment.

> I just assume there are more devices out there that we don't know about or understand.

I don't totally understand the broader discussion, but `malloc(4) == nullptr` is another gadget.  This is optimized to `false` by LLVM even though at runtime it can be false or true depending on the state of the heap.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D83906



More information about the cfe-commits mailing list