summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit2c35b1c94ca6ffd87bfbb31d0ccb93a1fe381710 (patch)
treeab1bc5d96673ec1451318e11d8027a54dbd84e7f /llvm
parent7267b352fb02c4e6e239f960dd08a3347551e427 (diff)
downloadbcm5719-llvm-2c35b1c94ca6ffd87bfbb31d0ccb93a1fe381710.tar.gz
bcm5719-llvm-2c35b1c94ca6ffd87bfbb31d0ccb93a1fe381710.zip
Make sure to add a type for va_next operands, which may not other wise
occur in the module llvm-svn: 9336
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/VMCore/SlotCalculator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/SlotCalculator.cpp b/llvm/lib/VMCore/SlotCalculator.cpp
index 7b4a6da1790..9969550d0b0 100644
--- a/llvm/lib/VMCore/SlotCalculator.cpp
+++ b/llvm/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) {
OpenPOWER on IntegriCloud