From 9f9c06e49c25791a0b675fee3836ceb3430746da Mon Sep 17 00:00:00 2001 From: rth Date: Tue, 19 Oct 2004 17:43:31 +0000 Subject: * builtins.c (expand_builtin_memmove): If fold_builtin_memmove succeeds, only expand the result. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89282 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/builtins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/builtins.c') diff --git a/gcc/builtins.c b/gcc/builtins.c index b097adf70b8..57d871aa606 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -2725,7 +2725,7 @@ expand_builtin_memmove (tree arglist, tree type, rtx target, tree result = fold_builtin_memmove (arglist, type); if (result) - expand_expr (result, target, mode, EXPAND_NORMAL); + return expand_expr (result, target, mode, EXPAND_NORMAL); /* If DEST is not a pointer type, call the normal function. */ if (dest_align == 0) -- cgit v1.2.1