This avoids going over the clobber list twice.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211485
91177308-0d34-0410-b5e6-
96231b3b80d8
Clobbers.erase(End, Clobbers.end());
// Build the vector of clobber StringRefs.
- unsigned NumClobbers = Clobbers.size();
- ClobberRefs.resize(NumClobbers);
- for (unsigned i = 0; i != NumClobbers; ++i)
- ClobberRefs[i] = StringRef(Clobbers[i]);
+ ClobberRefs.insert(ClobberRefs.end(), Clobbers.begin(), Clobbers.end());
// Recast the void pointers and build the vector of constraint StringRefs.
unsigned NumExprs = NumOutputs + NumInputs;