Initialize the PoisonMemory member before initializing
authorDan Gohman <gohman@apple.com>
Thu, 27 Aug 2009 01:25:57 +0000 (01:25 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 27 Aug 2009 01:25:57 +0000 (01:25 +0000)
commit5b78d50cadf5df4948e8e5798a3e08e0ccf4cb06
tree492b9f667169a24fd421456e59e963b0e3d8e30f
parentcdbb3f5d3311e0f46d22bc8daa211b2fab3541cb
Initialize the PoisonMemory member before initializing
members that call methods that read the PoisonMemory member.
This fixes potential spurious (though probably otherwise
harmless) poising of unused memory, and fixes the
associated valgrind error.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80192 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/JIT/JITMemoryManager.cpp