[llvm] [InferAttrs] Mark errnomem-setting libcalls as such (PR #124742)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 28 07:54:20 PST 2025


================
@@ -320,6 +357,7 @@ bool llvm::inferNonMandatoryLibFuncAttrs(Function &F,
     Changed |= setWillReturn(F);
     Changed |= setDoesNotCapture(F, 1);
     Changed |= setOnlyReadsMemory(F, 0);
+    Changed |= setOnlyAccessesArgOrErrnoMem(F);
----------------
nikic wrote:

Accesses locale?

https://github.com/llvm/llvm-project/pull/124742


More information about the llvm-commits mailing list