From f272809d60425c3b82f5e969d95cd2a0b71ccbb9 Mon Sep 17 00:00:00 2001 From: jjasmine Date: Sun, 23 Jun 2024 10:39:12 -0700 Subject: [PATCH] Local testing for build_string and debug() gcc/rust/ChangeLog: * backend/rust-compile-expr.cc (CompileExpr::visit): Local testing for build_string and debug() --- gcc/rust/backend/rust-compile-expr.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/rust/backend/rust-compile-expr.cc b/gcc/rust/backend/rust-compile-expr.cc index 2d5819419fbb..ab10af712c24 100644 --- a/gcc/rust/backend/rust-compile-expr.cc +++ b/gcc/rust/backend/rust-compile-expr.cc @@ -320,7 +320,10 @@ CompileExpr::visit (HIR::IfExpr &expr) void CompileExpr::visit (HIR::InlineAsm &expr) -{} +{ + tree test_string = build_string(expr.template_strs[0].symbol.size() + 1, expr.template_strs[0].symbol.c_str()); + debug(test_string); +} void CompileExpr::visit (HIR::IfExprConseqElse &expr)