Skip to content

[FunctionAttrs] Failure to infer nounwind for function with nounwind inline asm #150817

@nikic

Description

@nikic

https://llvm.godbolt.org/z/GbhjKE6Ex

; RUN: opt -S -passes=function-attrs < %s
define void @test() {
  call void asm "", ""() nounwind
  ret void
}

For some reason nounwind does not get inferred, even though the inline asm call is nounwind.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions