Squelch a bogus warning.
authorChris Lattner <sabre@nondot.org>
Tue, 23 Nov 2004 15:56:38 +0000 (15:56 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 23 Nov 2004 15:56:38 +0000 (15:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18156 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCCodeEmitter.cpp

index 6ecbb1392461a003ca1072b42a7eb9dc3c030fcb..ef8ec6c51505709d342989ed76cc1a4ec1214dfc 100644 (file)
@@ -194,7 +194,7 @@ int PPC32CodeEmitter::getMachineOpValue(MachineInstr &MI, MachineOperand &MO) {
   } else if (MO.isImmediate()) {
     rv = MO.getImmedValue();
   } else if (MO.isGlobalAddress()) {
-    unsigned Reloc;
+    unsigned Reloc = 0;
     if (MI.getOpcode() == PPC::CALLpcrel)
       Reloc = PPC::reloc_pcrel_bx;
     else if (MI.getOpcode() == PPC::LOADHiAddr) {