[clang] [clang-tools-extra] [llvm] [mlir] [clang][lldb][mlir] Fix some identical sub-expressions warnings (NFC) (PR #95715)

Piotr Zegar via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 22 11:33:31 PDT 2024


================
@@ -96,7 +96,7 @@ bool areStatementsIdentical(const Stmt *FirstStmt, const Stmt *SecondStmt,
   if (FirstStmt == SecondStmt)
     return true;
 
-  if (FirstStmt->getStmtClass() != FirstStmt->getStmtClass())
+  if (FirstStmt->getStmtClass() != SecondStmt->getStmtClass())
----------------
PiotrZSL wrote:

Thx for info, that were a bug.

https://github.com/llvm/llvm-project/pull/95715


More information about the llvm-commits mailing list