[all-commits] [llvm/llvm-project] 4c9c2d: [AST] Avoid repeated hash lookups (NFC) (#111327)
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Mon Oct 7 06:56:18 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4c9c2d6082740b4ddda1ecfdc33702e4cbd3444d
https://github.com/llvm/llvm-project/commit/4c9c2d6082740b4ddda1ecfdc33702e4cbd3444d
Author: Kazu Hirata <kazu at google.com>
Date: 2024-10-07 (Mon, 07 Oct 2024)
Changed paths:
M clang/lib/AST/CXXInheritance.cpp
Log Message:
-----------
[AST] Avoid repeated hash lookups (NFC) (#111327)
Here I'm splitting up the existing "if" statement into two. Mixing
hasDefinition() and insert() in one "if" condition would be extremely
confusing as hasDefinition() doesn't change anything while insert()
does.
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