Fix PR4772 ARM JIT.GlobalInFuction unittest by explicitly initialize MMI

to 0 during JITEmitter constructor.

Modified:
	lib/ExecutionEngine/JIT/JITEmitter.cpp



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79982 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Xerxes Ranby 2009-08-25 10:12:55 +00:00
parent 7ccda0f2aa
commit 3d47db50b3

View File

@ -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();