mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 00:25:01 +00:00
because some functions just use va_start and pass things to vfprintf
llvm-svn: 22269
This commit is contained in:
parent
4e1c8055ea
commit
ce6f907ffe
@ -737,6 +737,17 @@ static PATypeHolder HandleUpRefs(const Type *ty) {
|
||||
Module *Result = ParserResult;
|
||||
ParserResult = 0;
|
||||
|
||||
//Not all functions use vaarg, so make a second check for ObsoleteVarArgs
|
||||
{
|
||||
Function* F;
|
||||
if ((F = Result->getNamedFunction("llvm.va_start"))
|
||||
&& F->getFunctionType()->getNumParams() == 0)
|
||||
ObsoleteVarArgs = true;
|
||||
if((F = Result->getNamedFunction("llvm.va_copy"))
|
||||
&& F->getFunctionType()->getNumParams() == 1)
|
||||
ObsoleteVarArgs = true;
|
||||
}
|
||||
|
||||
if (ObsoleteVarArgs && NewVarArgs)
|
||||
{
|
||||
std::cerr << "This file is corrupt in that it uses both new and old style varargs\n";
|
||||
|
Loading…
Reference in New Issue
Block a user