]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/d/d-target.cc
d: Fix ICE in in add_stack_var, at cfgexpand.cc:476
[gcc.git] / gcc / d / d-target.cc
index 610be74ad4876c17c5b9930e3e53dc298ff79f9e..d4350e593e4f32f12084f7dc78a7e66c848ddb6b 100644 (file)
@@ -464,6 +464,8 @@ Target::isReturnOnStack (TypeFunction *tf, bool)
     return false;
 
   Type *tn = tf->next->toBasetype ();
+  if (tn->size () == SIZE_INVALID)
+    return false;
 
   return (tn->ty == TY::Tstruct || tn->ty == TY::Tsarray);
 }
This page took 0.025431 seconds and 5 git commands to generate.