From b983f5d4ce5937cc6c3184d622d7fec5df22b3aa Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Thu, 15 Nov 2012 14:45:30 +0000 Subject: =?UTF-8?q?Do=20not=20handle=20void=20types=20in=20DataLayout.=20?= =?UTF-8?q?=20Patch=20by=20Patrick=20H=C3=A4gglund.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168042 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/DataLayout.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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 -- cgit v1.2.3