Use isAnyComplexType here so we don't pass complex numbers into the aggregate handling code; found by inspection.

llvm-svn: 133070
This commit is contained in:
Eli Friedman 2011-06-15 18:27:44 +00:00
parent 7e68c88bf7
commit 471a22febc
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ void CodeGenFunction::EmitAnyExprToMem(const Expr *E,
llvm::Value *Location,
bool IsLocationVolatile,
bool IsInit) {
if (E->getType()->isComplexType())
if (E->getType()->isAnyComplexType())
EmitComplexExprIntoAddr(E, Location, IsLocationVolatile);
else if (hasAggregateLLVMType(E->getType()))
EmitAggExpr(E, AggValueSlot::forAddr(Location, IsLocationVolatile, IsInit));