aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Type.h
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-09-15 00:52:23 +0000
committerDale Johannesen <dalej@apple.com>2010-09-15 00:52:23 +0000
commit29fc6f35a5a284e0c304b1877e9acf040bfca339 (patch)
treea819580fd36e4d28f6e23a947c14b5cb6b6870f9 /include/llvm/Type.h
parent49ddd3a1a4b75f1181e0bd3faae4b50950e6ff53 (diff)
downloadexternal_llvm-29fc6f35a5a284e0c304b1877e9acf040bfca339.zip
external_llvm-29fc6f35a5a284e0c304b1877e9acf040bfca339.tar.gz
external_llvm-29fc6f35a5a284e0c304b1877e9acf040bfca339.tar.bz2
Add x86MMX a few more places.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113914 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r--include/llvm/Type.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h
index b493879..0939d67 100644
--- a/include/llvm/Type.h
+++ b/include/llvm/Type.h
@@ -313,7 +313,8 @@ public:
///
bool isSized() const {
// If it's a primitive, it is always sized.
- if (ID == IntegerTyID || isFloatingPointTy() || ID == PointerTyID)
+ if (ID == IntegerTyID || isFloatingPointTy() || ID == PointerTyID ||
+ ID == X86_MMXTyID)
return true;
// If it is not something that can have a size (e.g. a function or label),
// it doesn't have a size.