[all-commits] [llvm/llvm-project] d41204: [clang][Interp] Fix "Initializing" zero-size arrays

Timm Baeder via All-commits all-commits at lists.llvm.org
Mon Apr 8 22:05:09 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d4120477130a5f9e472753068dcc627baddc44f6
      https://github.com/llvm/llvm-project/commit/d4120477130a5f9e472753068dcc627baddc44f6
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2024-04-09 (Tue, 09 Apr 2024)

  Changed paths:
    M clang/lib/AST/Interp/Pointer.cpp
    M clang/test/AST/Interp/arrays.cpp

  Log Message:
  -----------
  [clang][Interp] Fix "Initializing" zero-size arrays

getIndex() returns 0 here, so we were trying to initalize the 0th
element.

Fixes #88018



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