Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>,
Burhan =?utf-8?b?U8O2xJ/DvHQ=?= <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>


================
@@ -0,0 +1,27 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o 
-  | FileCheck %s
+
+void empty();
+
+void check_noproto_ptr() {
+  void (*fun)(void) = empty;
+}
+
+// CHECK: cir.func no_proto dso_local @check_noproto_ptr()
+// CHECK:    %[[ALLOC:.*]] = cir.alloca !cir.ptr<!cir.func<()>>, 
!cir.ptr<!cir.ptr<!cir.func<()>>>, ["fun", init] {alignment = 8 : i64}
----------------
AmrDeveloper wrote:

```suggestion
// CHECK:    %[[ALLOC:.*]] = cir.alloca !cir.ptr<!cir.func<()>>, 
!cir.ptr<!cir.ptr<!cir.func<()>>>, ["fun", init]
```

We just forgot this :D

https://github.com/llvm/llvm-project/pull/157333
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to