| Index: src/compiler/node.cc
|
| diff --git a/src/compiler/node.cc b/src/compiler/node.cc
|
| index 724c9f173ec55bff234a8de7db7eddcfd06b7c75..e1802b8d10b8a01540565319f5752873d7c161db 100644
|
| --- a/src/compiler/node.cc
|
| +++ b/src/compiler/node.cc
|
| @@ -100,7 +100,9 @@ void Node::TrimInputCount(int new_input_count) {
|
| for (int index = new_input_count; index < input_count(); ++index) {
|
| ReplaceInput(index, nullptr);
|
| }
|
| - if (!has_appendable_inputs()) {
|
| + if (has_appendable_inputs()) {
|
| + inputs_.appendable_->resize(new_input_count);
|
| + } else {
|
| set_reserved_input_count(std::min<int>(
|
| ReservedInputCountField::kMax,
|
| reserved_input_count() + (input_count() - new_input_count)));
|
|
|