[all-commits] [llvm/llvm-project] 780937: [clang][bytecode] Add a special opcode for trivial...

Timm Baeder via All-commits all-commits at lists.llvm.org
Sat Sep 19 22:35:31 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 780937f68bfd726b3e45dd2de14d0d152e075147
      https://github.com/llvm/llvm-project/commit/780937f68bfd726b3e45dd2de14d0d152e075147
  Author: Timm Baeder <tbaeder at redhat.com>
  Date:   2026-09-20 (Sun, 20 Sep 2026)

  Changed paths:
    M clang/lib/AST/ByteCode/Compiler.cpp
    M clang/lib/AST/ByteCode/Interp.cpp
    M clang/lib/AST/ByteCode/Interp.h
    M clang/lib/AST/ByteCode/Opcodes.td
    A clang/test/AST/ByteCode/Inputs/default-ctor.cppm
    A clang/test/AST/ByteCode/module-default-ctor.cpp

  Log Message:
  -----------
  [clang][bytecode] Add a special opcode for trivial default initializers (#224839)

Trivial default initializers from modules are not implicitly defined in
the AST, so we would diagnose the attached test case as an undefined
constructor. Do what the current interpreter does and special-case this.

Fixes https://github.com/llvm/llvm-project/issues/221400



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