https://github.com/tbaederr created 
https://github.com/llvm/llvm-project/pull/218689

None

>From d4a1ab5fe7b0fa29e02c9d9429e3abbd9e9449e9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <[email protected]>
Date: Tue, 25 Aug 2026 15:49:16 +0200
Subject: [PATCH] [clang][bytecode][NFC] Fix redundant DenseMap lookup

---
 clang/lib/AST/ByteCode/Program.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/lib/AST/ByteCode/Program.cpp 
b/clang/lib/AST/ByteCode/Program.cpp
index c838729fb599d..0acbfb7f5a419 100644
--- a/clang/lib/AST/ByteCode/Program.cpp
+++ b/clang/lib/AST/ByteCode/Program.cpp
@@ -218,7 +218,7 @@ UnsignedOrNone Program::createGlobal(const ValueDecl *VD, 
const Expr *Init,
     // block.
     auto [Iter, Inserted] = GlobalIndices.try_emplace(Redecl);
     if (Inserted) {
-      GlobalIndices[Redecl] = *Idx;
+      Iter->second = *Idx;
       continue;
     }
 

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to