[TableGen] Use std::fill instead of a manually coded loop. NFC

llvm-svn: 253835
This commit is contained in:
Craig Topper 2015-11-22 20:46:22 +00:00
parent fda69dd736
commit 43c414f31b
1 changed files with 2 additions and 2 deletions

View File

@ -1299,8 +1299,8 @@ TreePatternNode *TreePatternNode::clone() const {
/// RemoveAllTypes - Recursively strip all the types of this tree.
void TreePatternNode::RemoveAllTypes() {
for (unsigned i = 0, e = Types.size(); i != e; ++i)
Types[i] = EEVT::TypeSet(); // Reset to unknown type.
// Reset to unknown type.
std::fill(Types.begin(), Types.end(), EEVT::TypeSet());
if (isLeaf()) return;
for (unsigned i = 0, e = getNumChildren(); i != e; ++i)
getChild(i)->RemoveAllTypes();