[llvm] 749d68b - [CriticalAntiDepBreaker] Fix another MSVC build error. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 7 00:09:17 PST 2025


Author: Craig Topper
Date: 2025-03-07T00:09:07-08:00
New Revision: 749d68bdfe97c6dd29fb9f7e4a7f63854ecef295

URL: https://github.com/llvm/llvm-project/commit/749d68bdfe97c6dd29fb9f7e4a7f63854ecef295
DIFF: https://github.com/llvm/llvm-project/commit/749d68bdfe97c6dd29fb9f7e4a7f63854ecef295.diff

LOG: [CriticalAntiDepBreaker] Fix another MSVC build error. NFC

Added: 
    

Modified: 
    llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp b/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp
index bc9da22138673..e8581f632f8ee 100644
--- a/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp
+++ b/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp
@@ -325,7 +325,7 @@ void CriticalAntiDepBreaker::ScanInstruction(MachineInstr &MI, unsigned Count) {
     else if (!NewRC || Classes[Reg.id()] != NewRC)
       Classes[Reg.id()] = reinterpret_cast<TargetRegisterClass *>(-1);
 
-    RegRefs.insert(std::make_pair(Reg, &MO));
+    RegRefs.emplace(Reg, &MO);
 
     // It wasn't previously live but now it is, this is a kill.
     // Repeat for all aliases.


        


More information about the llvm-commits mailing list