[clang] [CIR][ABI] Add restrict, nonnull, and ReturnsNonNull attributes (PR #188281)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 25 15:46:45 PDT 2026
================
@@ -106,7 +106,7 @@ A *b() {
// LLVM: define {{.*}} ptr @_Z1bv() {{.*}} personality ptr @__gxx_personality_v0 {
// LLVM: %[[RETVAL:.*]] = alloca ptr
// LLVM: %[[NEW_RESULT:.*]] = alloca ptr
-// LLVM: %[[PTR:.*]] = call ptr @_Znwm(i64 8) #[[ATTR_BUILTIN_NEW]]
+// LLVM: %[[PTR:.*]] = call nonnull ptr @_Znwm(i64 8) #[[ATTR_BUILTIN_NEW]]
----------------
andykaylor wrote:
As above
https://github.com/llvm/llvm-project/pull/188281
More information about the cfe-commits
mailing list