diff options
Diffstat (limited to 'gcc/rust/backend/rust-compile-base.cc')
-rw-r--r-- | gcc/rust/backend/rust-compile-base.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/backend/rust-compile-base.cc b/gcc/rust/backend/rust-compile-base.cc index 7b0a375..3de80d9 100644 --- a/gcc/rust/backend/rust-compile-base.cc +++ b/gcc/rust/backend/rust-compile-base.cc @@ -555,7 +555,7 @@ HIRCompileBase::compile_constant_item ( if (!is_block_expr) { tree value = CompileExpr::Compile (const_value_expr, ctx); - folded_expr = ConstCtx::fold (value); + folded_expr = fold_expr (value); } else { @@ -605,7 +605,7 @@ HIRCompileBase::compile_constant_item ( // lets fold it into a call expr tree call = build_call_array_loc (locus.gcc_location (), const_type, fndecl, 0, NULL); - folded_expr = ConstCtx::fold (call); + folded_expr = fold_expr (call); } return named_constant_expression (const_type, ident, folded_expr, locus); |