aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorIngo Müller <ingomueller@google.com>2023-07-07 05:49:01 +0000
committerIngo Müller <ingomueller@google.com>2023-07-07 09:16:02 +0000
commit8d0a02cbc89eb9016062ecfa5abe88be45570cbb (patch)
tree7b7440fa6be627840a8301f87f2cfbc8039325a7 /clang/lib/Frontend/CompilerInvocation.cpp
parentc000b403fcae6272779686ab82eb777ca3fd6d77 (diff)
downloadllvm-8d0a02cbc89eb9016062ecfa5abe88be45570cbb.zip
llvm-8d0a02cbc89eb9016062ecfa5abe88be45570cbb.tar.gz
llvm-8d0a02cbc89eb9016062ecfa5abe88be45570cbb.tar.bz2
[mlir] Add InsertionGuards to OneToNPatternRewriter.
This fixes bad behavior of that class that surfaced in https://reviews.llvm.org/D154299, where calling applySignatureConversion left the insertion point different from before the call, which broke a subsequent call to replaceOp. This patch introduces a fix in both functions, each of which is enough to fix the specific problem in the aforementioned diff: (1) applySignatureConversion now resets the insertion point with a guard for the whole function and (2) replace sets the insertion point to the op that should be replaced (and resets it with a guard). Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D154684
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions