[llvm] Fixed issue of use after move (PR #193175)
Jaydeep Chauhan via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 21 03:05:28 PDT 2026
https://github.com/JaydeepChauhan14 created https://github.com/llvm/llvm-project/pull/193175
None
>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] 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());
More information about the llvm-commits
mailing list