forked from OSchip/llvm-project
[RS4GC] Pass DenseMap by reference, NFC
Summary: Passing the rematerialized values map to insertRematerializationStores by value looks to be a simple oversight; update it to pass by reference. Reviewers: reames, sanjoy Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D16911 llvm-svn: 259867
This commit is contained in:
parent
eb4b58f6ce
commit
adc2376375
|
@ -1617,11 +1617,10 @@ insertRelocationStores(iterator_range<Value::user_iterator> GCRelocs,
|
|||
|
||||
// Helper function for the "relocationViaAlloca". Similar to the
|
||||
// "insertRelocationStores" but works for rematerialized values.
|
||||
static void
|
||||
insertRematerializationStores(
|
||||
RematerializedValueMapTy RematerializedValues,
|
||||
DenseMap<Value *, Value *> &AllocaMap,
|
||||
DenseSet<Value *> &VisitedLiveValues) {
|
||||
static void insertRematerializationStores(
|
||||
const RematerializedValueMapTy &RematerializedValues,
|
||||
DenseMap<Value *, Value *> &AllocaMap,
|
||||
DenseSet<Value *> &VisitedLiveValues) {
|
||||
|
||||
for (auto RematerializedValuePair: RematerializedValues) {
|
||||
Instruction *RematerializedValue = RematerializedValuePair.first;
|
||||
|
|
Loading…
Reference in New Issue