Skip to content

Commit

Permalink
Address comments by @rxwei.
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-zheng committed Jan 16, 2019
1 parent 0eb023d commit 61ccf59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Serialization/Serialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2372,7 +2372,7 @@ void Serializer::writeDeclAttribute(const DeclAttribute *DA) {
auto paramIndices = attr->getParameterIndices();
assert(paramIndices && "Checked parameter indices must be resolved");
SmallVector<bool, 4> indices;
for (unsigned i = 0; i < paramIndices->parameters.size(); i++)
for (unsigned i : swift::indices(paramIndices->parameters))
indices.push_back(paramIndices->parameters[i]);

DifferentiableDeclAttrLayout::emitRecord(
Expand Down

0 comments on commit 61ccf59

Please sign in to comment.