mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 08:30:34 +08:00
This patch fixes crash when attempting to convert uint to int address space during finalize-memref-to-llvm by doing the following: 1. Add a check to verify that IntegerAttr is signed int before calling IntegerAttr::getInt() 2. Emit error when getMemRefAddressSpace returns a failure() Closes #111242 --------- Co-authored-by: Christian Ulmann <christianulmann@gmail.com>