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

llvm-svn: 178
This commit is contained in:
Chris Lattner 2001-07-14 06:08:51 +00:00
parent 5a2d2b1f0a
commit 5446f8a542
2 changed files with 2 additions and 1 deletions

View file

@ -13,6 +13,7 @@
#include "llvm/SymTabValue.h"
#include <vector>
#include <map>
class Value;
class SlotCalculator : public ModuleAnalyzer {
const Module *TheModule;

View file

@ -99,7 +99,7 @@ bool ModuleAnalyzer::processConstPool(const ConstantPool &CP, bool isMethod) {
}
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;