mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[TableGen] Use std::fill instead of a manually coded loop. NFC
llvm-svn: 253835
This commit is contained in:
parent
e34f67faf7
commit
97e6105938
@ -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
Block a user