[all-commits] [llvm/llvm-project] b4ae41: [clang] [NFC] explicitly check if ParentMap contai...

Sameer Sahasrabuddhe via All-commits all-commits at lists.llvm.org
Tue Jan 7 20:35:06 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b4ae4192989f97503626748421f32745897941ba
      https://github.com/llvm/llvm-project/commit/b4ae4192989f97503626748421f32745897941ba
  Author: Sameer Sahasrabuddhe <sameer.sahasrabuddhe at amd.com>
  Date:   2025-01-08 (Wed, 08 Jan 2025)

  Changed paths:
    M clang/lib/AST/ParentMap.cpp

  Log Message:
  -----------
  [clang] [NFC] explicitly check if ParentMap contains key (#121736)

The implementation of ParentMap assumes that the key is absent if it is
mapped to nullptr. This breaks when trying to store a tuple as the value
type. Remove this assumption by explicit uses of `try_emplace()`.



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