[llvm] Skip tranformConstExprCastCall for naked function (PR #76496)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 1 01:46:57 PST 2024


================
@@ -0,0 +1,16 @@
+; RUN: opt < %s -passes=instcombine -S | FileCheck %s
+
+define dso_local void @naked_func() #0 {
----------------
nikic wrote:

Remove dso_local.

Also directly use `naked` here instead of an attribute group.

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


More information about the llvm-commits mailing list