aboutsummaryrefslogtreecommitdiff
path: root/source/opt/compact_ids_pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/opt/compact_ids_pass.cpp')
-rw-r--r--source/opt/compact_ids_pass.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/opt/compact_ids_pass.cpp b/source/opt/compact_ids_pass.cpp
index 67091531..8815b8c6 100644
--- a/source/opt/compact_ids_pass.cpp
+++ b/source/opt/compact_ids_pass.cpp
@@ -86,9 +86,12 @@ Pass::Status CompactIdsPass::Process() {
},
true);
- if (modified)
+ if (modified) {
context()->module()->SetIdBound(
static_cast<uint32_t>(result_id_mapping.size() + 1));
+ // There are ids in the feature manager that could now be invalid
+ context()->ResetFeatureManager();
+ }
return modified ? Status::SuccessWithChange : Status::SuccessWithoutChange;
}