[llvm] [FunctionAttrs] Infer `errnomem` location when accessing errno (PR #129067)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 21 03:06:20 PDT 2025
================
@@ -0,0 +1,56 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 6
+; RUN: opt -passes=function-attrs -S < %s | FileCheck --check-prefixes=FNATTRS %s
+; RUN: opt -passes=attributor-light -S < %s | FileCheck --check-prefixes=ATTRIBUTOR %s
+
+define i32 @test_read_errno() {
+; FNATTRS-LABEL: define i32 @test_read_errno() {
----------------
nikic wrote:
Looks like this isn't actually testing the inferred attributes. You need to pass `--function-attrs` or something like that to UTC.
https://github.com/llvm/llvm-project/pull/129067
More information about the llvm-commits
mailing list