From: Eli Friedman Date: Wed, 15 Jun 2011 18:27:44 +0000 (+0000) Subject: Use isAnyComplexType here so we don't pass complex numbers into the aggregate handlin... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=431e4b35fb222fad17702775df4cd50648697229;p=clang Use isAnyComplexType here so we don't pass complex numbers into the aggregate handling code; found by inspection. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133070 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index 2f6b55bd7b..525ad1b8f1 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -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));