[all-commits] [llvm/llvm-project] 3ce328: [mlir][spirv] Check output of getConstantInt (#140...

Igor Wodiany via All-commits all-commits at lists.llvm.org
Wed Jun 4 05:15:49 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3ce32819894f15a9a82b62a7b87ba8b7b93128ef
      https://github.com/llvm/llvm-project/commit/3ce32819894f15a9a82b62a7b87ba8b7b93128ef
  Author: Igor Wodiany <igor.wodiany at imgtec.com>
  Date:   2025-06-04 (Wed, 04 Jun 2025)

  Changed paths:
    M mlir/lib/Target/SPIRV/Deserialization/Deserializer.cpp

  Log Message:
  -----------
  [mlir][spirv] Check output of getConstantInt (#140568)

This patch adds an assert to check if the result of `getConstantInt` is
non-null. Previously the code failed with Segmentation Fault if
`getConstantInt` failed to look up the value. This primarily occurrs when
the value is defined as OpSpecConstant rather than OpConstant.



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