projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d10b0b
)
IntegerType is a sized DerivedType too.
author
Reid Spencer
<rspencer@reidspencer.com>
Fri, 26 Jan 2007 07:51:36 +0000
(07:51 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Fri, 26 Jan 2007 07:51:36 +0000
(07:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33521
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Type.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Type.cpp
b/lib/VMCore/Type.cpp
index d1cdc5fe2efde23f5bb03f63f97b127a5153ab70..ec7aee803117f855495de1b9c0e8ecf9e90b4deb 100644
(file)
--- a/
lib/VMCore/Type.cpp
+++ b/
lib/VMCore/Type.cpp
@@
-139,6
+139,9
@@
unsigned Type::getPrimitiveSizeInBits() const {
/// iff all of the members of the type are sized as well. Since asking for
/// their size is relatively uncommon, move this operation out of line.
bool Type::isSizedDerivedType() const {
+ if (isa<IntegerType>(this))
+ return true;
+
if (const ArrayType *ATy = dyn_cast<ArrayType>(this))
return ATy->getElementType()->isSized();