diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index ef291e7db2f7..4c86eeb73505 100644 --- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp @@ -1617,11 +1617,10 @@ insertRelocationStores(iterator_range GCRelocs, // Helper function for the "relocationViaAlloca". Similar to the // "insertRelocationStores" but works for rematerialized values. -static void -insertRematerializationStores( - RematerializedValueMapTy RematerializedValues, - DenseMap &AllocaMap, - DenseSet &VisitedLiveValues) { +static void insertRematerializationStores( + const RematerializedValueMapTy &RematerializedValues, + DenseMap &AllocaMap, + DenseSet &VisitedLiveValues) { for (auto RematerializedValuePair: RematerializedValues) { Instruction *RematerializedValue = RematerializedValuePair.first;