[PATCH] D94684: [InferAttrs] Mark some library functions as willreturn.

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 14 11:42:39 PST 2021


nikic added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/BuildLibCalls.cpp:433
     Changed |= setDoesNotThrow(F);
+    Changed |= setWillReturn(F);
     return Changed;
----------------
memcpy_chk is spec'd to abort on overflow, so possibly should not be willreturn?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D94684



More information about the llvm-commits mailing list