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

Shivam Gupta llvmlistbot at llvm.org
Fri Jul 26 04:59:55 PDT 2024


================
@@ -4368,7 +4368,7 @@ bool Sema::DiagRedefinedPlaceholderFieldDecl(SourceLocation Loc,
   Diag(Loc, diag::err_using_placeholder_variable) << Name;
   for (DeclContextLookupResult::iterator It = Found; It != Result.end(); It++) {
     const NamedDecl *ND = *It;
-    if (ND->getDeclContext() != ND->getDeclContext())
+    if (ND->getDeclContext() != ClassDecl->getDeclContext())
----------------
xgupta wrote:

I am not familiar with this part of code to add a testcase, and not even sure it is right fix. I will just remove this changes from this PR. 

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


More information about the Mlir-commits mailing list