forked from OSchip/llvm-project
[TableGen] Use std::fill instead of a manually coded loop. NFC
llvm-svn: 253835
This commit is contained in:
parent
fda69dd736
commit
43c414f31b
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue