diff options
author | Siddhesh Deodhar <153800103+siddhesh195@users.noreply.github.com> | 2024-11-08 23:53:50 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-08 12:23:50 -0600 |
commit | 40740c4494d971ce410e2051b8d3ea7bbe081c76 (patch) | |
tree | 13e636271e880ce7509ab2817eac5f7a1e2b13d9 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | e53c46a9084caac115d7f694e5f16f904b0d7124 (diff) | |
download | llvm-40740c4494d971ce410e2051b8d3ea7bbe081c76.zip llvm-40740c4494d971ce410e2051b8d3ea7bbe081c76.tar.gz llvm-40740c4494d971ce410e2051b8d3ea7bbe081c76.tar.bz2 |
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>
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions