From: Chris Lattner Date: Tue, 21 Oct 2003 17:40:54 +0000 (+0000) Subject: Make sure to add a type for va_next operands, which may not other wise X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2765c41c98f8108f704977e73763f2f4d790a882;p=oota-llvm.git 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 --- diff --git a/lib/Bytecode/Writer/SlotCalculator.cpp b/lib/Bytecode/Writer/SlotCalculator.cpp index 7b4a6da1790..9969550d0b0 100644 --- a/lib/Bytecode/Writer/SlotCalculator.cpp +++ b/lib/Bytecode/Writer/SlotCalculator.cpp @@ -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(I)) - // getOrCreateSlot(VAN->getArgType()); + if (const VANextInst *VAN = dyn_cast(I)) + getOrCreateSlot(VAN->getArgType()); } if (!IgnoreNamedNodes) { diff --git a/lib/VMCore/SlotCalculator.cpp b/lib/VMCore/SlotCalculator.cpp index 7b4a6da1790..9969550d0b0 100644 --- a/lib/VMCore/SlotCalculator.cpp +++ b/lib/VMCore/SlotCalculator.cpp @@ -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(I)) - // getOrCreateSlot(VAN->getArgType()); + if (const VANextInst *VAN = dyn_cast(I)) + getOrCreateSlot(VAN->getArgType()); } if (!IgnoreNamedNodes) {