[all-commits] [llvm/llvm-project] 75d6f5: [Interpreter] Add initialization of array members ...

Dudeldu via All-commits all-commits at lists.llvm.org
Fri Oct 20 06:27:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 75d6f508f86026a0eb938ff9df5afc7a1dcf6ec3
      https://github.com/llvm/llvm-project/commit/75d6f508f86026a0eb938ff9df5afc7a1dcf6ec3
  Author: Dudeldu <mustermann.informatik at gmail.com>
  Date:   2023-10-20 (Fri, 20 Oct 2023)

  Changed paths:
    M llvm/lib/ExecutionEngine/ExecutionEngine.cpp
    M llvm/test/ExecutionEngine/2010-01-15-UndefValue.ll

  Log Message:
  -----------
  [Interpreter] Add initialization of array members (#66172)

Currently, the interpreter does not initialize `undef` constants of
aggregate types correctly (with respect to arrays).
The initialization of the array elements is skipped although it is valid
to directly write to them. Instructions like
`insertvalue {i32, [4 x i32]} undef, i32 1, 1, 2` therefore lead to a
crash.
This is fixed by initializing array values just as fixed-size vectors or
structs.




More information about the All-commits mailing list