diff --git a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp index 59edf6e0299..3e7ef3ad217 100644 --- a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp +++ b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp @@ -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(V)) { - unsigned Reloc; + unsigned Reloc = 0; if (MI.getOpcode() == V9::CALL) { Reloc = V9::reloc_pcrel_call; } else if (MI.getOpcode() == V9::SETHI) {