[all-commits] [llvm/llvm-project] 04623a: [ADT] Use try_emplace in SCCIterator.h (NFC) (#164...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Sun Oct 19 21:56:37 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 04623afefcb9b3f84270b2a5c22476b1033e0384
https://github.com/llvm/llvm-project/commit/04623afefcb9b3f84270b2a5c22476b1033e0384
Author: Kazu Hirata <kazu at google.com>
Date: 2025-10-19 (Sun, 19 Oct 2025)
Changed paths:
M llvm/include/llvm/ADT/SCCIterator.h
Log Message:
-----------
[ADT] Use try_emplace in SCCIterator.h (NFC) (#164187)
This patch replaces an unidiomatic operator[] usage with try_emplace
to ensure in-place NodeInfo construction and correct Group field
initialization.
This patch also clarifies the comment. In particular, "insertion
operation" by itself isn't clear whether it's referring to insert() or
all of insertion operations like insert(), insert_or_assign(),
try_emplace(), etc.
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