summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-21 17:40:54 +0000
committerChris Lattner <sabre@nondot.org>2003-10-21 17:40:54 +0000
commit2765c41c98f8108f704977e73763f2f4d790a882 (patch)
treed957de7a5229bbbeb2d373e08254299e3f48fbb6 /lib
parent389dbfbd8b0e49968a3ddaee90c3486b4740f146 (diff)
downloadllvm-2765c41c98f8108f704977e73763f2f4d790a882.tar.gz
llvm-2765c41c98f8108f704977e73763f2f4d790a882.tar.bz2
llvm-2765c41c98f8108f704977e73763f2f4d790a882.tar.xz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Bytecode/Writer/SlotCalculator.cpp4
-rw-r--r--lib/VMCore/SlotCalculator.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Bytecode/Writer/SlotCalculator.cpp b/lib/Bytecode/Writer/SlotCalculator.cpp
index 7b4a6da179..9969550d0b 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<VANextInst>(I))
- // getOrCreateSlot(VAN->getArgType());
+ if (const VANextInst *VAN = dyn_cast<VANextInst>(I))
+ getOrCreateSlot(VAN->getArgType());
}
if (!IgnoreNamedNodes) {
diff --git a/lib/VMCore/SlotCalculator.cpp b/lib/VMCore/SlotCalculator.cpp
index 7b4a6da179..9969550d0b 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<VANextInst>(I))
- // getOrCreateSlot(VAN->getArgType());
+ if (const VANextInst *VAN = dyn_cast<VANextInst>(I))
+ getOrCreateSlot(VAN->getArgType());
}
if (!IgnoreNamedNodes) {