]> granicus.if.org Git - clang/commitdiff
Use isAnyComplexType here so we don't pass complex numbers into the aggregate handlin...
authorEli Friedman <eli.friedman@gmail.com>
Wed, 15 Jun 2011 18:27:44 +0000 (18:27 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Wed, 15 Jun 2011 18:27:44 +0000 (18:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133070 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExpr.cpp

index 2f6b55bd7b0bc46fe999bda1f5528f39cf69444a..525ad1b8f122a302e70316ee812e63ca2230dfa8 100644 (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));