[llvm-commits] [llvm] r58598 - /llvm/trunk/lib/ExecutionEngine/JIT/JITEmitter.cpp
Evan Cheng
evan.cheng at apple.com
Sun Nov 2 23:14:02 PST 2008
Author: evancheng
Date: Mon Nov 3 01:14:02 2008
New Revision: 58598
URL: http://llvm.org/viewvc/llvm-project?rev=58598&view=rev
Log:
Silence a compiler warning.
Modified:
llvm/trunk/lib/ExecutionEngine/JIT/JITEmitter.cpp
Modified: llvm/trunk/lib/ExecutionEngine/JIT/JITEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/JIT/JITEmitter.cpp?rev=58598&r1=58597&r2=58598&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/JIT/JITEmitter.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/JIT/JITEmitter.cpp Mon Nov 3 01:14:02 2008
@@ -875,7 +875,7 @@
// 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());
More information about the llvm-commits
mailing list