Issue error on "void" typed variable, function parameter, or struct member.

This commit is contained in:
Matt Pharr
2012-02-06 07:44:45 -08:00
parent fa7a7fe23e
commit 977b983771
10 changed files with 56 additions and 1 deletions

View File

@@ -1165,6 +1165,7 @@ ArrayType::ArrayType(const Type *c, int a)
: child(c), numElements(a) {
// 0 -> unsized array.
Assert(numElements >= 0);
Assert(c != AtomicType::Void);
}