mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-18 10:32:48 +02:00
* The parent of a constant pool is a SymTabValue, not a value.
llvm-svn: 178
This commit is contained in:
parent
8131335c27
commit
34244ab669
@ -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 New Issue
Block a user