diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-01-20 21:51:11 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-01-20 21:51:11 +0000 |
commit | 46a9f016c5fca708710e8c791675354cbf51fdfa (patch) | |
tree | 63642aaaa31ba6bc3ee7ee892cccee1bf17f5abc /llvm/lib/Target/TargetData.cpp | |
parent | e4d798f07897a6378d0f2588e4c2335ec85ca935 (diff) | |
download | bcm5719-llvm-46a9f016c5fca708710e8c791675354cbf51fdfa.tar.gz bcm5719-llvm-46a9f016c5fca708710e8c791675354cbf51fdfa.zip |
More dead code removal (using -Wunreachable-code)
llvm-svn: 148578
Diffstat (limited to 'llvm/lib/Target/TargetData.cpp')
-rw-r--r-- | llvm/lib/Target/TargetData.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Target/TargetData.cpp b/llvm/lib/Target/TargetData.cpp index 2b39f1308b7..b34018b7b1e 100644 --- a/llvm/lib/Target/TargetData.cpp +++ b/llvm/lib/Target/TargetData.cpp @@ -496,9 +496,7 @@ uint64_t TargetData::getTypeSizeInBits(Type *Ty) const { return cast<VectorType>(Ty)->getBitWidth(); default: llvm_unreachable("TargetData::getTypeSizeInBits(): Unsupported type"); - break; } - return 0; } /*! @@ -553,7 +551,6 @@ unsigned TargetData::getAlignment(Type *Ty, bool abi_or_pref) const { break; default: llvm_unreachable("Bad type for getAlignment!!!"); - break; } return getAlignmentInfo((AlignTypeEnum)AlignType, getTypeSizeInBits(Ty), |