aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PowerPC
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-10-16 13:02:33 +0000
committerDuncan Sands <baldrick@free.fr>2008-10-16 13:02:33 +0000
commitfaccd255d9c6b0aeae4101c568f156bd40bab1d6 (patch)
tree289823d0acd036d8fb24126c227acc62f569ee42 /lib/Target/PowerPC
parentcceaac69d634c6f610214729678443d849651a0d (diff)
downloadexternal_llvm-faccd255d9c6b0aeae4101c568f156bd40bab1d6.zip
external_llvm-faccd255d9c6b0aeae4101c568f156bd40bab1d6.tar.gz
external_llvm-faccd255d9c6b0aeae4101c568f156bd40bab1d6.tar.bz2
Fix warnings about mb/me being potentially used
uninitialized in these functions with gcc-4.3. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57635 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC')
-rw-r--r--lib/Target/PowerPC/PPCInstrInfo.td4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td
index 947d140..508e9ac 100644
--- a/lib/Target/PowerPC/PPCInstrInfo.td
+++ b/lib/Target/PowerPC/PPCInstrInfo.td
@@ -180,14 +180,14 @@ def HA16 : SDNodeXForm<imm, [{
}]>;
def MB : SDNodeXForm<imm, [{
// Transformation function: get the start bit of a mask
- unsigned mb, me;
+ unsigned mb = 0, me;
(void)isRunOfOnes((unsigned)N->getZExtValue(), mb, me);
return getI32Imm(mb);
}]>;
def ME : SDNodeXForm<imm, [{
// Transformation function: get the end bit of a mask
- unsigned mb, me;
+ unsigned mb, me = 0;
(void)isRunOfOnes((unsigned)N->getZExtValue(), mb, me);
return getI32Imm(me);
}]>;