summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-06-15 18:27:44 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-06-15 18:27:44 +0000
commit471a22febc0b551d92e9957863a7d79e71248da8 (patch)
tree4274fbdc37e5380bec3c0a07b9ba3daa78909db8 /clang/lib/CodeGen/CGExpr.cpp
parent7e68c88bf7c4007ee3ef7c4884af1d45456c2e7a (diff)
downloadbcm5719-llvm-471a22febc0b551d92e9957863a7d79e71248da8.tar.gz
bcm5719-llvm-471a22febc0b551d92e9957863a7d79e71248da8.zip
Use isAnyComplexType here so we don't pass complex numbers into the aggregate handling code; found by inspection.
llvm-svn: 133070
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 2f6b55bd7b0..525ad1b8f12 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/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));
OpenPOWER on IntegriCloud