Silence a compiler warning.
authorEvan Cheng <evan.cheng@apple.com>
Mon, 3 Nov 2008 07:14:02 +0000 (07:14 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 3 Nov 2008 07:14:02 +0000 (07:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58598 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/JIT/JITEmitter.cpp

index 9f020e3ae37f6ecb68dbca9e1900af047c363d07..747ac0894a554d18e02ed6ef2053b72aff4a905b 100644 (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());