[llvm] [InstCombine] Emit fatal error on void to non-void conversion (PR #96574)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 26 08:59:57 PDT 2024
yozhu wrote:
Instead of spending many engineering hours to track down runtime problems like app crashing or behaving abnormally, would it be better if we can surface this problem at build time? If it is not acceptable to completely disable the optimization taking advantage of void to non-void conversion, would it make sense if we add a new llvm option to a). report error on such invalid void to non-void conversion or b). disable the optimization in this case?
https://github.com/llvm/llvm-project/pull/96574
More information about the llvm-commits
mailing list