diff options
author | Alexander Shaposhnikov <ashaposhnikov@google.com> | 2023-07-11 21:26:41 +0000 |
---|---|---|
committer | Alexander Shaposhnikov <ashaposhnikov@google.com> | 2023-07-11 21:33:06 +0000 |
commit | 57609fb6dde1fce5dfa850816b964c8b5fda65a3 (patch) | |
tree | ea443f0a8ffa21fbe82775c7305ee0ea59259a65 /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | |
parent | 8df8f010652a8749ebf704fa6f711c91814c0a00 (diff) | |
download | llvm-57609fb6dde1fce5dfa850816b964c8b5fda65a3.zip llvm-57609fb6dde1fce5dfa850816b964c8b5fda65a3.tar.gz llvm-57609fb6dde1fce5dfa850816b964c8b5fda65a3.tar.bz2 |
[MLIR][MemRef] Avoid returning ReallocOp from findDealloc
This diff makes findDealloc return nullopt if the list of users contains "realloc".
Fixes https://github.com/llvm/llvm-project/issues/60726
(In particular, in SimplifyClones (uses findDealloc) treating "realloc" as "dealloc"
breaks the assumption that "dealloc" has no users)
Test plan: ninja check-mlir check-all
Differential revision: https://reviews.llvm.org/D154892
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions