mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-12 01:25:10 +00:00
Simplify creation of a bunch of ArrayRefs by using None, makeArrayRef or just letting them be implicitly created.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216525 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -317,8 +317,7 @@ static void CloneAliasScopeMetadata(CallSite CS, ValueToValueMapTy &VMap) {
|
||||
DenseMap<const MDNode *, TrackingVH<MDNode> > MDMap;
|
||||
for (SetVector<const MDNode *>::iterator I = MD.begin(), IE = MD.end();
|
||||
I != IE; ++I) {
|
||||
MDNode *Dummy = MDNode::getTemporary(CalledFunc->getContext(),
|
||||
ArrayRef<Value*>());
|
||||
MDNode *Dummy = MDNode::getTemporary(CalledFunc->getContext(), None);
|
||||
DummyNodes.push_back(Dummy);
|
||||
MDMap[*I] = Dummy;
|
||||
}
|
||||
|
Reference in New Issue
Block a user