]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/function-abi.cc
Assert for POINTER_TYPE_P in expr_callee_abi
[thirdparty/gcc.git] / gcc / function-abi.cc
index b4a18396367da24e953ed60b5197b52b574570e4..2c23b4936bf79670a53d29ba267ee69952fa778b 100644 (file)
@@ -249,12 +249,6 @@ expr_callee_abi (const_tree exp)
   if (type == error_mark_node)
     return default_function_abi;
 
-  if (POINTER_TYPE_P (type))
-    {
-      type = TREE_TYPE (type);
-      if (type == error_mark_node)
-       return default_function_abi;
-    }
-
-  return fntype_abi (type);
+  gcc_assert (POINTER_TYPE_P (type));
+  return fntype_abi (TREE_TYPE (type));
 }