aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-complex.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-complex.cc')
-rw-r--r--gcc/tree-complex.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/tree-complex.cc b/gcc/tree-complex.cc
index 8a812d4..e339b3a 100644
--- a/gcc/tree-complex.cc
+++ b/gcc/tree-complex.cc
@@ -1715,6 +1715,10 @@ gimple_expand_builtin_cabs (gimple_stmt_iterator *gsi, gimple *old_stmt)
tree lhs = gimple_call_lhs (old_stmt);
+ /* If there is not a LHS, then just keep the statement around. */
+ if (!lhs)
+ return;
+
real_part = extract_component (gsi, arg, false, true);
imag_part = extract_component (gsi, arg, true, true);
location_t loc = gimple_location (old_stmt);