Make sure to add a type for va_next operands, which may not other wise

occur in the module


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9336 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-10-21 17:40:54 +00:00
parent 389dbfbd8b
commit 2765c41c98
2 changed files with 4 additions and 4 deletions

View File

@ -177,8 +177,8 @@ void SlotCalculator::incorporateFunction(const Function *F) {
for (Function::const_iterator BB = F->begin(), E = F->end(); BB != E; ++BB)
for (BasicBlock::const_iterator I = BB->begin(), E = BB->end(); I!=E; ++I) {
getOrCreateSlot(I);
//if (const VANextInst *VAN = dyn_cast<VANextInst>(I))
// getOrCreateSlot(VAN->getArgType());
if (const VANextInst *VAN = dyn_cast<VANextInst>(I))
getOrCreateSlot(VAN->getArgType());
}
if (!IgnoreNamedNodes) {

View File

@ -177,8 +177,8 @@ void SlotCalculator::incorporateFunction(const Function *F) {
for (Function::const_iterator BB = F->begin(), E = F->end(); BB != E; ++BB)
for (BasicBlock::const_iterator I = BB->begin(), E = BB->end(); I!=E; ++I) {
getOrCreateSlot(I);
//if (const VANextInst *VAN = dyn_cast<VANextInst>(I))
// getOrCreateSlot(VAN->getArgType());
if (const VANextInst *VAN = dyn_cast<VANextInst>(I))
getOrCreateSlot(VAN->getArgType());
}
if (!IgnoreNamedNodes) {