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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9336 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Writer/SlotCalculator.cpp
lib/VMCore/SlotCalculator.cpp

index 7b4a6da179032108402f7d4349cbfa1a41f8cdd1..9969550d0b0fbcd41c7594a1310b80d04f169af3 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) {
index 7b4a6da179032108402f7d4349cbfa1a41f8cdd1..9969550d0b0fbcd41c7594a1310b80d04f169af3 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) {