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 /include | |
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 'include')
-rw-r--r-- | include/llvm/DataLayout.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/DataLayout.h b/include/llvm/DataLayout.h index 7d8eace1b6..e10f9c74c9 100644 --- a/include/llvm/DataLayout.h +++ b/include/llvm/DataLayout.h @@ -281,6 +281,7 @@ public: /// getTypeSizeInBits - Return the number of bits necessary to hold the /// specified type. For example, returns 36 for i36 and 80 for x86_fp80. + /// The type passed must have a size (Type::isSized() must return true). uint64_t getTypeSizeInBits(Type* Ty) const; /// getTypeStoreSize - Return the maximum number of bytes that may be |