From 9b2dc287177394a8f73833e2ad4f7ca8cd6f22bb Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 4 Apr 2008 16:54:41 +0000 Subject: Since isComplexType() no longer returns true for _Complex integers, the code generator needs to call isAnyComplexType(). This fixes PR1960. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49220 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExprAgg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/CGExprAgg.cpp') diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp index f57c2ed881..1ff7372a09 100644 --- a/lib/CodeGen/CGExprAgg.cpp +++ b/lib/CodeGen/CGExprAgg.cpp @@ -95,7 +95,7 @@ public: //===----------------------------------------------------------------------===// void AggExprEmitter::EmitAggregateClear(llvm::Value *DestPtr, QualType Ty) { - assert(!Ty->isComplexType() && "Shouldn't happen for complex"); + assert(!Ty->isAnyComplexType() && "Shouldn't happen for complex"); // Aggregate assignment turns into llvm.memset. const llvm::Type *BP = llvm::PointerType::getUnqual(llvm::Type::Int8Ty); @@ -121,7 +121,7 @@ void AggExprEmitter::EmitAggregateClear(llvm::Value *DestPtr, QualType Ty) { void AggExprEmitter::EmitAggregateCopy(llvm::Value *DestPtr, llvm::Value *SrcPtr, QualType Ty) { - assert(!Ty->isComplexType() && "Shouldn't happen for complex"); + assert(!Ty->isAnyComplexType() && "Shouldn't happen for complex"); // Aggregate assignment turns into llvm.memcpy. const llvm::Type *BP = llvm::PointerType::getUnqual(llvm::Type::Int8Ty); -- cgit v1.2.3