* The parent of a constant pool is a SymTabValue, not a value.

llvm-svn: 178
diff --git a/llvm/include/llvm/SlotCalculator.h b/llvm/include/llvm/SlotCalculator.h
index 99e40cb..d5ebe70 100644
--- a/llvm/include/llvm/SlotCalculator.h
+++ b/llvm/include/llvm/SlotCalculator.h
@@ -13,6 +13,7 @@
 #include "llvm/SymTabValue.h"
 #include <vector>
 #include <map>
+class Value;
 
 class SlotCalculator : public ModuleAnalyzer {
   const Module *TheModule;
diff --git a/llvm/lib/Analysis/ModuleAnalyzer.cpp b/llvm/lib/Analysis/ModuleAnalyzer.cpp
index 0f028d1..7f50985 100644
--- a/llvm/lib/Analysis/ModuleAnalyzer.cpp
+++ b/llvm/lib/Analysis/ModuleAnalyzer.cpp
@@ -99,7 +99,7 @@
   }
   
   if (!isMethod) {
-    const Module *M = CP.getParent()->castModuleAsserting();
+    const Module *M = CP.getParentV()->castModuleAsserting();
     // Process the method types after the constant pool...
     for (Module::const_iterator I = M->begin(); I != M->end(); ++I) {
       if (handleType(TypeSet, (*I)->getType())) return true;