Drop an unjustified limitation from Type::isObjectType(). Fixes PR7801 and doesn't seem to break anything.

llvm-svn: 110295
This commit is contained in:
Sebastian Redl 2010-08-05 01:21:19 +00:00
parent e0351b970d
commit 29ce472c17
2 changed files with 7 additions and 1 deletions

View File

@ -168,7 +168,7 @@ bool Type::isVoidType() const {
bool Type::isObjectType() const {
if (isa<FunctionType>(CanonicalType) || isa<ReferenceType>(CanonicalType) ||
isa<IncompleteArrayType>(CanonicalType) || isVoidType())
isVoidType())
return false;
return true;
}

View File

@ -0,0 +1,6 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
namespace pr7801 {
extern void* x[];
void* dummy[] = { &x };
}