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:
parent
7e68c88bf7
commit
471a22febc
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue