[llvm-commits] [llvm-gcc-4.0] r40622 - in /llvm-gcc-4.0/trunk/gcc: llvm-backend.cpp llvm-convert.cpp llvm-internal.h llvm-types.cpp

Anton Korobeynikov asl at math.spbu.ru
Tue Jul 31 13:59:06 PDT 2007


Hello, Christopher.

> -    return TypeDB.setType(type, ConvertFunctionType(type, NULL, CallingConv));
> +    return TypeDB.setType(type, ConvertFunctionType(type, orig_type, NULL, CallingConv));
and another one: second argument should be "declaration" tree, not
"type" tree. This was caused build error on darwin (reported by Tanya):

<tonic> ./../src/gcc/config/darwin-crt3.c: In function
'cxa_atexit_check_2':
<tonic> ../../src/gcc/config/darwin-crt3.c:160: internal compiler error:
tree check: expected class 'declaration', have 'type' (function_type) in
ConvertFunctionType, at llvm-types.cpp:983

-- 
With best regards, Anton Korobeynikov.

Faculty of Mathematics & Mechanics, Saint Petersburg State University.





More information about the llvm-commits mailing list