diff options
Diffstat (limited to 'source/opt/fold.cpp')
-rw-r--r-- | source/opt/fold.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/opt/fold.cpp b/source/opt/fold.cpp index b903da6a2..315741ad7 100644 --- a/source/opt/fold.cpp +++ b/source/opt/fold.cpp @@ -627,8 +627,7 @@ Instruction* InstructionFolder::FoldInstructionToConstant( Instruction* inst, std::function<uint32_t(uint32_t)> id_map) const { analysis::ConstantManager* const_mgr = context_->get_constant_mgr(); - if (!inst->IsFoldableByFoldScalar() && - !GetConstantFoldingRules().HasFoldingRule(inst)) { + if (!inst->IsFoldableByFoldScalar() && !HasConstFoldingRule(inst)) { return nullptr; } // Collect the values of the constant parameters. |