[all-commits] [llvm/llvm-project] bde089: [CIR] Add implicit return zero handling (#194490)

Andy Kaylor via All-commits all-commits at lists.llvm.org
Tue Apr 28 11:28:53 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bde089e256cee6a245871c321012a63b6820e0d4
      https://github.com/llvm/llvm-project/commit/bde089e256cee6a245871c321012a63b6820e0d4
  Author: Andy Kaylor <akaylor at nvidia.com>
  Date:   2026-04-28 (Tue, 28 Apr 2026)

  Changed paths:
    M clang/lib/CIR/CodeGen/CIRGenFunction.cpp
    A clang/test/CIR/CodeGen/implicit-return-zero.c

  Log Message:
  -----------
  [CIR] Add implicit return zero handling (#194490)

This adds code to emit a store of zero to the return value for functions
that are identified as having the implicit return zero propery (such as
main() in C programs).

Assisted-by: Cursor / claude-opus-4.7-thinking-xhigh



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list