Skip to content

[lldb] Use DenseMap::insert_range (NFC) #133846

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

kazutakahirata
Copy link
Contributor

No description provided.

@kazutakahirata kazutakahirata requested a review from kuhar April 1, 2025 03:24
@llvmbot llvmbot added the lldb label Apr 1, 2025
@llvmbot
Copy link
Member

llvmbot commented Apr 1, 2025

@llvm/pr-subscribers-lldb

Author: Kazu Hirata (kazutakahirata)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/133846.diff

1 Files Affected:

  • (modified) lldb/source/Plugins/ABI/X86/ABIX86.cpp (+1-1)
diff --git a/lldb/source/Plugins/ABI/X86/ABIX86.cpp b/lldb/source/Plugins/ABI/X86/ABIX86.cpp
index 3c55a6ea17e8f..db170700d3f65 100644
--- a/lldb/source/Plugins/ABI/X86/ABIX86.cpp
+++ b/lldb/source/Plugins/ABI/X86/ABIX86.cpp
@@ -191,7 +191,7 @@ BaseRegToRegsMap makeBaseRegMap(bool is64bit) {
                                  // higher YMM registers (specific to amd64)
                                  YMM(8), YMM(9), YMM(10), YMM(11), YMM(12),
                                  YMM(13), YMM(14), YMM(15)}};
-    out.insert(amd64_regs.begin(), amd64_regs.end());
+    out.insert_range(amd64_regs);
   }
 
   return out;

@kazutakahirata kazutakahirata merged commit 4d68cf3 into llvm:main Apr 1, 2025
12 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_001_map_range_DenseMap_lldb branch April 1, 2025 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants