diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-01-17 04:43:56 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-01-17 04:43:56 +0000 |
commit | fdebc38523b397743973ff6a2d2e93b112dd96e5 (patch) | |
tree | 03c93b31dc3e434c640e0180231461400e390529 /lib/Transforms | |
parent | 21506061ef031a01fce5cc1781f30780fbecb59b (diff) | |
download | external_llvm-fdebc38523b397743973ff6a2d2e93b112dd96e5.zip external_llvm-fdebc38523b397743973ff6a2d2e93b112dd96e5.tar.gz external_llvm-fdebc38523b397743973ff6a2d2e93b112dd96e5.tar.bz2 |
Remove unreachable code. (replace with llvm_unreachable to help GCC where necessary)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148284 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/ObjCARC.cpp | 1 | ||||
-rw-r--r-- | lib/Transforms/Utils/BasicBlockUtils.cpp | 1 | ||||
-rw-r--r-- | lib/Transforms/Utils/CmpInstAnalysis.cpp | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/ObjCARC.cpp b/lib/Transforms/Scalar/ObjCARC.cpp index 756e565..03b287f 100644 --- a/lib/Transforms/Scalar/ObjCARC.cpp +++ b/lib/Transforms/Scalar/ObjCARC.cpp @@ -1886,7 +1886,6 @@ Depends(DependenceKind Flavor, Instruction *Inst, const Value *Arg, } llvm_unreachable("Invalid dependence flavor"); - return true; } /// FindDependencies - Walk up the CFG from StartPos (which is in StartBB) and diff --git a/lib/Transforms/Utils/BasicBlockUtils.cpp b/lib/Transforms/Utils/BasicBlockUtils.cpp index ef4a473..3859a1a 100644 --- a/lib/Transforms/Utils/BasicBlockUtils.cpp +++ b/lib/Transforms/Utils/BasicBlockUtils.cpp @@ -249,7 +249,6 @@ unsigned llvm::GetSuccessorNumber(BasicBlock *BB, BasicBlock *Succ) { if (Term->getSuccessor(i) == Succ) return i; } - return 0; } /// SplitEdge - Split the edge connecting specified block. Pass P must diff --git a/lib/Transforms/Utils/CmpInstAnalysis.cpp b/lib/Transforms/Utils/CmpInstAnalysis.cpp index e336e9a..8983e0c 100644 --- a/lib/Transforms/Utils/CmpInstAnalysis.cpp +++ b/lib/Transforms/Utils/CmpInstAnalysis.cpp @@ -59,7 +59,6 @@ unsigned llvm::getICmpCode(const ICmpInst *ICI, bool InvertPred) { // True -> 7 default: llvm_unreachable("Invalid ICmp predicate!"); - return 0; } } |