Make sure to add a type for va_next operands, which may not other wise
authorChris Lattner <sabre@nondot.org>
Tue, 21 Oct 2003 17:40:54 +0000 (17:40 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 21 Oct 2003 17:40:54 +0000 (17:40 +0000)
occur in the module

llvm-svn: 9336

llvm/lib/VMCore/SlotCalculator.cpp

index 7b4a6da..9969550 100644 (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) {