[all-commits] [llvm/llvm-project] af6812: [clang][Interp] Fix initializing a union from an I...

Timm Baeder via All-commits all-commits at lists.llvm.org
Thu May 23 00:18:30 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af6812085cc7a7251a3095acbc96343ce660f135
      https://github.com/llvm/llvm-project/commit/af6812085cc7a7251a3095acbc96343ce660f135
  Author: Timm BΓ€der <tbaeder at redhat.com>
  Date:   2024-05-23 (Thu, 23 May 2024)

  Changed paths:
    M clang/lib/AST/Interp/ByteCodeExprGen.cpp
    M clang/lib/AST/Interp/Interp.h
    M clang/test/AST/Interp/unions.cpp

  Log Message:
  -----------
  [clang][Interp] Fix initializing a union from an InitLIstExpr

We can't just count the field to initialize but need to consult the
InitListExpr to give us the right field.



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