diff options
Diffstat (limited to 'source/opt/module.cpp')
-rw-r--r-- | source/opt/module.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/opt/module.cpp b/source/opt/module.cpp index 5983abb1..c98af8f5 100644 --- a/source/opt/module.cpp +++ b/source/opt/module.cpp @@ -90,6 +90,8 @@ void Module::ForEachInst(const std::function<void(Instruction*)>& f, DELEGATE(extensions_); DELEGATE(ext_inst_imports_); if (memory_model_) memory_model_->ForEachInst(f, run_on_debug_line_insts); + if (sampled_image_address_mode_) + sampled_image_address_mode_->ForEachInst(f, run_on_debug_line_insts); DELEGATE(entry_points_); DELEGATE(execution_modes_); DELEGATE(debugs1_); @@ -114,6 +116,9 @@ void Module::ForEachInst(const std::function<void(const Instruction*)>& f, if (memory_model_) static_cast<const Instruction*>(memory_model_.get()) ->ForEachInst(f, run_on_debug_line_insts); + if (sampled_image_address_mode_) + static_cast<const Instruction*>(sampled_image_address_mode_.get()) + ->ForEachInst(f, run_on_debug_line_insts); for (auto& i : entry_points_) DELEGATE(i); for (auto& i : execution_modes_) DELEGATE(i); for (auto& i : debugs1_) DELEGATE(i); |