[llvm] bcdbd0b - [llvm][DataFlowSanitizer] Don't pass vector by value (NFC)
    Youngsuk Kim via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri May  3 04:00:26 PDT 2024
    
    
  
Author: Youngsuk Kim
Date: 2024-05-03T05:58:40-05:00
New Revision: bcdbd0bf50a3845130c5db9e3284f056233f12d7
URL: https://github.com/llvm/llvm-project/commit/bcdbd0bf50a3845130c5db9e3284f056233f12d7
DIFF: https://github.com/llvm/llvm-project/commit/bcdbd0bf50a3845130c5db9e3284f056233f12d7.diff
LOG: [llvm][DataFlowSanitizer] Don't pass vector by value (NFC)
Closes #89201
Added: 
    
Modified: 
    llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
Removed: 
    
################################################################################
diff  --git a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
index 54b51b520369e5..851edb4ce829e6 100644
--- a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
@@ -357,7 +357,7 @@ class DFSanABIList {
 /// useful for updating calls of the old function to the new type.
 struct TransformedFunction {
   TransformedFunction(FunctionType *OriginalType, FunctionType *TransformedType,
-                      std::vector<unsigned> ArgumentIndexMapping)
+                      const std::vector<unsigned> &ArgumentIndexMapping)
       : OriginalType(OriginalType), TransformedType(TransformedType),
         ArgumentIndexMapping(ArgumentIndexMapping) {}
 
        
    
    
More information about the llvm-commits
mailing list