forked from OSchip/llvm-project
parent
f64f7fb1b6
commit
67b9ef7be8
|
@ -87,10 +87,6 @@ bool ConstantMerge::runOnModule(Module &M) {
|
|||
} else if (GV->hasInternalLinkage()) { // Yup, this is a duplicate!
|
||||
// Make all uses of the duplicate constant use the canonical version.
|
||||
Replacements.push_back(std::make_pair(GV, Slot));
|
||||
} else if (GV->hasInternalLinkage()) {
|
||||
// Make all uses of the duplicate constant use the canonical version.
|
||||
Replacements.push_back(std::make_pair(Slot, GV));
|
||||
Slot = GV;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue