[all-commits] [llvm/llvm-project] a8ec6e: [IR] Require that global value initializers are si...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri May 2 00:53:00 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a8ec6e8788832cff77ec855a2331438c937fb5da
      https://github.com/llvm/llvm-project/commit/a8ec6e8788832cff77ec855a2331438c937fb5da
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2025-05-02 (Fri, 02 May 2025)

  Changed paths:
    M llvm/docs/LangRef.rst
    M llvm/lib/IR/Verifier.cpp
    A llvm/test/Verifier/global-initializer-sized.ll
    M llvm/test/Verifier/scalable-global-vars.ll

  Log Message:
  -----------
  [IR] Require that global value initializers are sized (#137358)

While external globals can be unsized, I don't think an unsized
initializer makes sense.

It seems like the backend currently ends up treating this as a zero-size
global. If people want that behavior, they should declare it as such.



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