Squelch a bogus warning
[oota-llvm.git] / lib / Target / SparcV9 / SparcV9CodeEmitter.cpp
index 59edf6e02999251aaf538bac9925810f1af1b464..3e7ef3ad217ae9c24b5a139ad85f72c44a4d3ae4 100644 (file)
@@ -142,7 +142,7 @@ int64_t SparcV9CodeEmitter::getMachineOpValue(MachineInstr &MI,
       // So undo that: give the instruction (CI - PC) / 4
       rv = (CI->getRawValue() - MCE.getCurrentPCValue()) / 4;
     } else if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) {
-      unsigned Reloc;
+      unsigned Reloc = 0;
       if (MI.getOpcode() == V9::CALL) {
         Reloc = V9::reloc_pcrel_call;
       } else if (MI.getOpcode() == V9::SETHI) {