aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-23 15:57:01 +0000
committerChris Lattner <sabre@nondot.org>2004-11-23 15:57:01 +0000
commitadbcc1025ea4be03935508ffbe24d07e3bf50d1d (patch)
treead69d742af0dd9b625ac18372b7b49652247d252 /lib/Target
parentd7fa35c6d2acc2fe95346b1b9eaa3c0a30342c85 (diff)
downloadexternal_llvm-adbcc1025ea4be03935508ffbe24d07e3bf50d1d.zip
external_llvm-adbcc1025ea4be03935508ffbe24d07e3bf50d1d.tar.gz
external_llvm-adbcc1025ea4be03935508ffbe24d07e3bf50d1d.tar.bz2
Squelch a bogus warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18157 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/SparcV9/SparcV9CodeEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp
index 59edf6e..3e7ef3a 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<GlobalValue>(V)) {
- unsigned Reloc;
+ unsigned Reloc = 0;
if (MI.getOpcode() == V9::CALL) {
Reloc = V9::reloc_pcrel_call;
} else if (MI.getOpcode() == V9::SETHI) {