* The parent of a constant pool is a SymTabValue, not a value.
llvm-svn: 178
This commit is contained in:
parent
5a2d2b1f0a
commit
5446f8a542
|
@ -13,6 +13,7 @@
|
|||
#include "llvm/SymTabValue.h"
|
||||
#include <vector>
|
||||
#include <map>
|
||||
class Value;
|
||||
|
||||
class SlotCalculator : public ModuleAnalyzer {
|
||||
const Module *TheModule;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue