Disable const parameter optimization in variadic functions
This commit is contained in:
parent
e80f9812ef
commit
b61aa37f71
|
@ -342,7 +342,8 @@ bool GlobalOptimizer::Optimize(void)
|
|||
changed = true;
|
||||
}
|
||||
|
||||
|
||||
if (!(ftype->mFlags & DTF_VARIADIC))
|
||||
{
|
||||
Declaration* pdec = ftype->mParams;
|
||||
int vi = 0;
|
||||
while (pdec)
|
||||
|
@ -392,6 +393,7 @@ bool GlobalOptimizer::Optimize(void)
|
|||
pdec = pdec->mNext;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
PropagateCommas(func->mValue);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue