[all-commits] [llvm/llvm-project] b79007: [IR] Fix accumulateConstantOffset() on zero-index GEP

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Dec 4 08:18:26 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b79007d8a6fed51ec2e06aeaec31968122cfcd09
      https://github.com/llvm/llvm-project/commit/b79007d8a6fed51ec2e06aeaec31968122cfcd09
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-12-04 (Wed, 04 Dec 2024)

  Changed paths:
    M llvm/lib/IR/Operator.cpp
    M llvm/unittests/IR/InstructionsTest.cpp

  Log Message:
  -----------
  [IR] Fix accumulateConstantOffset() on zero-index GEP

These are degenerate but not malformed, so make sure we don't
crash.



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