[all-commits] [llvm/llvm-project] d48d48: [clang-tidy][NFC] Fix tiny bug in areStatementsIde...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Mon Jul 22 13:47:14 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d48d4805f792adbdac58d480f890449def4964ea
      https://github.com/llvm/llvm-project/commit/d48d4805f792adbdac58d480f890449def4964ea
  Author: Piotr Zegar <me at piotrzegar.pl>
  Date:   2024-07-22 (Mon, 22 Jul 2024)

  Changed paths:
    M clang-tools-extra/clang-tidy/utils/ASTUtils.cpp

  Log Message:
  -----------
  [clang-tidy][NFC] Fix tiny bug in areStatementsIdentical

Function areStatementsIdentical had an early exit
when classes of stmt does not match. That if were
added to speed up checking and do not calculate
hash id of both objects if they are not the same
type. Due to some bug, wrong pointer were used
and this resulted with comparing self to self.

This patch fixes this issue.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list