Issue 53360
Summary Broken __attribute__((flatten)) since Clang 13
Labels new issue
Assignees
Reporter davidbolvansky
    ```
void foo(void) {}

__attribute__((noinline)) void bar(void) {}

__attribute__((flatten))

void g(void) {
  foo();
  bar();
}

```

Clang 13+
define dso_local void @g() #0 {
  call void @foo() #1
  call void @bar()
  ret void
}

attributes #1 = { alwaysinline }


Clang 12
define dso_local void @g() #0 {
  call void @bar()
  ret void
}





_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to