Fix alignment issues in LLVM.
[oota-llvm.git] / include / llvm / IR / DerivedTypes.h
index 38f1af0d70dab9f76c686e38e7d4484aa0084e54..4a94499b4cf508606e7b1114f5431d4ee2527e8c 100644 (file)
@@ -140,7 +140,8 @@ public:
     return T->getTypeID() == FunctionTyID;
   }
 };
-
+static_assert(AlignOf<FunctionType>::Alignment >= AlignOf<Type *>::Alignment,
+              "Alignment sufficient for objects appended to FunctionType");
 
 /// CompositeType - Common super class of ArrayType, StructType, PointerType
 /// and VectorType.