[cfe-commits] r133070 - /cfe/trunk/lib/CodeGen/CGExpr.cpp
Eli Friedman
eli.friedman at gmail.com
Wed Jun 15 11:27:45 PDT 2011
Author: efriedma
Date: Wed Jun 15 13:27:44 2011
New Revision: 133070
URL: http://llvm.org/viewvc/llvm-project?rev=133070&view=rev
Log:
Use isAnyComplexType here so we don't pass complex numbers into the aggregate handling code; found by inspection.
Modified:
cfe/trunk/lib/CodeGen/CGExpr.cpp
Modified: cfe/trunk/lib/CodeGen/CGExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExpr.cpp?rev=133070&r1=133069&r2=133070&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExpr.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExpr.cpp Wed Jun 15 13:27:44 2011
@@ -133,7 +133,7 @@
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));
More information about the cfe-commits
mailing list