summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PowerPCBranchSelector.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-06-18 17:37:34 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-06-18 17:37:34 +0000
commit4fdd96c4e0a8e9d3d9d8167bfe750aee941a7b98 (patch)
treed2d0a279c0c14707d62557be306874141b6b52b6 /llvm/lib/Target/PowerPC/PowerPCBranchSelector.cpp
parent1fb9d0191911979caa145a88bd61ccd9adbb093f (diff)
downloadbcm5719-llvm-4fdd96c4e0a8e9d3d9d8167bfe750aee941a7b98.tar.gz
bcm5719-llvm-4fdd96c4e0a8e9d3d9d8167bfe750aee941a7b98.zip
Clean up some uninitialized variables and missing return statements that
GCC 4.0.0 compiler (sometimes incorrectly) warns about under release build. llvm-svn: 22249
Diffstat (limited to 'llvm/lib/Target/PowerPC/PowerPCBranchSelector.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PowerPCBranchSelector.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PowerPCBranchSelector.cpp b/llvm/lib/Target/PowerPC/PowerPCBranchSelector.cpp
index 7ace3c10d43..fdf1dd338a7 100644
--- a/llvm/lib/Target/PowerPC/PowerPCBranchSelector.cpp
+++ b/llvm/lib/Target/PowerPC/PowerPCBranchSelector.cpp
@@ -43,8 +43,9 @@ namespace {
case PPC::IMPLICIT_DEF: // no asm emitted
return 0;
default:
- return 4; // PowerPC instructions are all 4 bytes
+ break;
}
+ return 4; // PowerPC instructions are all 4 bytes
}
virtual bool runOnMachineFunction(MachineFunction &Fn) {
OpenPOWER on IntegriCloud