Files
clang-p2996/mlir/lib/Conversion/MemRefToLLVM/AllocLikeConversion.cpp
Siddhesh Deodhar 40740c4494 Fix crash when using when using --finalize-memref-to-llvm (#112433)
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>
2024-11-08 12:23:50 -06:00

7.9 KiB