diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-11-03 07:14:02 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-11-03 07:14:02 +0000 |
commit | 9200605cd5f6db50be20efb7df926dc5a0d19a4d (patch) | |
tree | 4b1dfde24617f31b7f8ae4bb6cd0582d46e91ae1 /lib/ExecutionEngine | |
parent | b90c37f64c5b856a4492f0c1f16c065ae9e31232 (diff) | |
download | external_llvm-9200605cd5f6db50be20efb7df926dc5a0d19a4d.zip external_llvm-9200605cd5f6db50be20efb7df926dc5a0d19a4d.tar.gz external_llvm-9200605cd5f6db50be20efb7df926dc5a0d19a4d.tar.bz2 |
Silence a compiler warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58598 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/JIT/JITEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index 9f020e3..747ac08 100644 --- a/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -875,7 +875,7 @@ bool JITEmitter::finishFunction(MachineFunction &F) { // Resolve the relocations to concrete pointers. for (unsigned i = 0, e = Relocations.size(); i != e; ++i) { MachineRelocation &MR = Relocations[i]; - void *ResultPtr; + void *ResultPtr = 0; if (!MR.letTargetResolve()) { if (MR.isString()) { ResultPtr = TheJIT->getPointerToNamedFunction(MR.getString()); |