Silence a compiler warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58598 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2008-11-03 07:14:02 +00:00
parent b90c37f64c
commit 9200605cd5

View File

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