va_start

Hi,

When I try to use va_start(ptr), I got the following problem :

Type *Tys = PointerType::get(IntegerType::get(8), 0);
return Intrinsic::getDeclaration(llvm_module,Intrinsic::vastart,&Tys,1);
...............
The Name generated is "llvm.va_start.p0i8", so, it's not found, abending the process.
and Len = 18
In intrinsics.gen :

if (Len == 13 && !memcmp(Name, "llvm.va_start", 13)) return Intrinsic::vastart;

Thanks,

Manoel Teixeira