diff options
author | Duncan Sands <baldrick@free.fr> | 2012-11-15 14:45:30 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2012-11-15 14:45:30 +0000 |
commit | b983f5d4ce5937cc6c3184d622d7fec5df22b3aa (patch) | |
tree | b7aa2c9ab666b61874d473e227b04ff63d98220b /lib/VMCore | |
parent | 1839858983dcbaf1808a6a37f5cd64d92981f27e (diff) | |
download | llvm-b983f5d4ce5937cc6c3184d622d7fec5df22b3aa.tar.gz llvm-b983f5d4ce5937cc6c3184d622d7fec5df22b3aa.tar.bz2 llvm-b983f5d4ce5937cc6c3184d622d7fec5df22b3aa.tar.xz |
Do not handle void types in DataLayout. Patch by Patrick Hägglund.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168042 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/DataLayout.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/VMCore/DataLayout.cpp b/lib/VMCore/DataLayout.cpp index 72dcb99b6d..24111be316 100644 --- a/lib/VMCore/DataLayout.cpp +++ b/lib/VMCore/DataLayout.cpp @@ -537,8 +537,6 @@ uint64_t DataLayout::getTypeSizeInBits(Type *Ty) const { return getStructLayout(cast<StructType>(Ty))->getSizeInBits(); case Type::IntegerTyID: return cast<IntegerType>(Ty)->getBitWidth(); - case Type::VoidTyID: - return 8; case Type::HalfTyID: return 16; case Type::FloatTyID: @@ -600,7 +598,6 @@ unsigned DataLayout::getAlignment(Type *Ty, bool abi_or_pref) const { return std::max(Align, Layout->getAlignment()); } case Type::IntegerTyID: - case Type::VoidTyID: AlignType = INTEGER_ALIGN; break; case Type::HalfTyID: |