Skip to content

[CIR] Upstream handling for FunctionToPointerDecay casts #153657

@andykaylor

Description

@andykaylor

Overview

Upstream support for handling implicit FunctionToPointerDecay casts in ClangIR.

Suggested minimal test case

int f1();
void f2() {
  int (*t)() = f1;
}

Existing incubator tests

clang/test/CIR/CodeGen/function-to-pointer-decay.c

Metadata

Metadata

Assignees

Labels

ClangIRAnything related to the ClangIR projectgood first issuehttps://github.com/llvm/llvm-project/contribute

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions