aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAlex Zinenko <zinenko@google.com>2021-01-29 19:41:10 +0100
committerAlex Zinenko <zinenko@google.com>2021-02-02 10:38:31 +0100
commit0409eb287414b71cfdcda13796c93794b71ea6d4 (patch)
treebb1b4480145ff5d76a1df9a375240b60081b5af7 /flang/lib/Frontend/CompilerInvocation.cpp
parent0479c53b6c5224c16bdc78cb014e76c0b0dbc6f9 (diff)
downloadllvm-0409eb287414b71cfdcda13796c93794b71ea6d4.zip
llvm-0409eb287414b71cfdcda13796c93794b71ea6d4.tar.gz
llvm-0409eb287414b71cfdcda13796c93794b71ea6d4.tar.bz2
[mlir] Keep track of region signature conversions as argument replacements
In dialect conversion, signature conversions essentially perform block argument replacement and are added to the general value remapping. However, the replaced values were not tracked, so if a signature conversion was rolled back, the construction of operand lists for the following patterns could have obtained block arguments from the mapping and give them to the pattern leading to use-after-free. Keep track of signature conversions similarly to normal block argument replacement, and erase such replacements from the general mapping when the conversion is rolled back. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D95688
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions