forked from OSchip/llvm-project
				
			Drop an unjustified limitation from Type::isObjectType(). Fixes PR7801 and doesn't seem to break anything.
llvm-svn: 110295
This commit is contained in:
		
							parent
							
								
									e0351b970d
								
							
						
					
					
						commit
						29ce472c17
					
				| 
						 | 
				
			
			@ -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;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -0,0 +1,6 @@
 | 
			
		|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
 | 
			
		||||
 | 
			
		||||
namespace pr7801 {
 | 
			
		||||
  extern void* x[];
 | 
			
		||||
  void* dummy[] = { &x };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
		Reference in New Issue