forked from OSchip/llvm-project
Fix PR4772 ARM JIT.GlobalInFuction unittest by explicitly initialize MMI
to 0 during JITEmitter constructor. Modified: lib/ExecutionEngine/JIT/JITEmitter.cpp llvm-svn: 79982
This commit is contained in:
parent
e98ee2a534
commit
e921f6f927
|
@ -505,7 +505,7 @@ namespace {
|
|||
|
||||
public:
|
||||
JITEmitter(JIT &jit, JITMemoryManager *JMM)
|
||||
: SizeEstimate(0), Resolver(jit), CurFn(0) {
|
||||
: SizeEstimate(0), Resolver(jit), MMI(0), CurFn(0) {
|
||||
MemMgr = JMM ? JMM : JITMemoryManager::CreateDefaultMemManager();
|
||||
if (jit.getJITInfo().needsGOT()) {
|
||||
MemMgr->AllocateGOT();
|
||||
|
|
Loading…
Reference in New Issue