[llvm] Fixed issue of use after move (PR #193175)
Jaydeep Chauhan via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 21 03:09:38 PDT 2026
https://github.com/JaydeepChauhan14 updated https://github.com/llvm/llvm-project/pull/193175
>From 9d755700d7fdfea19575773707123fe3fffcd5cc Mon Sep 17 00:00:00 2001
From: Chauhan Jaydeep Ashwinbhai <chauhan.jaydeep.ashwinbhai at intel.com>
Date: Tue, 21 Apr 2026 03:04:48 -0700
Subject: [PATCH 1/2] Fixed issue of use after move
---
llvm/utils/TableGen/DAGISelMatcherOpt.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/utils/TableGen/DAGISelMatcherOpt.cpp b/llvm/utils/TableGen/DAGISelMatcherOpt.cpp
index 2a7b834dea138..6bff4f16d36a8 100644
--- a/llvm/utils/TableGen/DAGISelMatcherOpt.cpp
+++ b/llvm/utils/TableGen/DAGISelMatcherOpt.cpp
@@ -442,7 +442,7 @@ static void FactorNodes(MatcherList &ML) {
// Don't print if it's obvious nothing extract could be merged anyway.
std::next(J) != E) {
LLVM_DEBUG(
- errs() << "Couldn't merge this:\n"; I->print(errs(), indent(4));
+ errs() << "Couldn't merge this:\n"; EqualMatchers[0].print(errs(), indent(4));
errs() << "into this:\n"; J->print(errs(), indent(4));
std::next(J)->front()->printOne(errs());
if (std::next(J, 2) != E) std::next(J, 2)->front()->printOne(errs());
>From 07f78b67636b0e6c5ab4225df088e5cc4fcf5882 Mon Sep 17 00:00:00 2001
From: Chauhan Jaydeep Ashwinbhai <chauhan.jaydeep.ashwinbhai at intel.com>
Date: Tue, 21 Apr 2026 03:09:26 -0700
Subject: [PATCH 2/2] Fixed formatting issue
---
llvm/utils/TableGen/DAGISelMatcherOpt.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/llvm/utils/TableGen/DAGISelMatcherOpt.cpp b/llvm/utils/TableGen/DAGISelMatcherOpt.cpp
index 6bff4f16d36a8..e1a0b287025b2 100644
--- a/llvm/utils/TableGen/DAGISelMatcherOpt.cpp
+++ b/llvm/utils/TableGen/DAGISelMatcherOpt.cpp
@@ -442,9 +442,9 @@ static void FactorNodes(MatcherList &ML) {
// Don't print if it's obvious nothing extract could be merged anyway.
std::next(J) != E) {
LLVM_DEBUG(
- errs() << "Couldn't merge this:\n"; EqualMatchers[0].print(errs(), indent(4));
- errs() << "into this:\n"; J->print(errs(), indent(4));
- std::next(J)->front()->printOne(errs());
+ errs() << "Couldn't merge this:\n";
+ EqualMatchers[0].print(errs(), indent(4)); errs() << "into this:\n";
+ J->print(errs(), indent(4)); std::next(J)->front()->printOne(errs());
if (std::next(J, 2) != E) std::next(J, 2)->front()->printOne(errs());
errs() << "\n");
}
More information about the llvm-commits
mailing list