diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-04 16:54:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-04 16:54:41 +0000 |
commit | 9b2dc287177394a8f73833e2ad4f7ca8cd6f22bb (patch) | |
tree | b1fde547077d020b5141ca5c5d54c2388587586c /lib/CodeGen/CGDecl.cpp | |
parent | f23d364084d1aabea688222780d6fc1dd8c7f78c (diff) |
Since isComplexType() no longer returns true for _Complex integers, the code
generator needs to call isAnyComplexType(). This fixes PR1960.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49220 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | lib/CodeGen/CGDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index a3155c4efa..3fcd60e7b6 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -123,7 +123,7 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const BlockVarDecl &D) { if (!hasAggregateLLVMType(Init->getType())) { llvm::Value *V = EmitScalarExpr(Init); Builder.CreateStore(V, DeclPtr, D.getType().isVolatileQualified()); - } else if (Init->getType()->isComplexType()) { + } else if (Init->getType()->isAnyComplexType()) { EmitComplexExprIntoAddr(Init, DeclPtr, D.getType().isVolatileQualified()); } else { EmitAggExpr(Init, DeclPtr, D.getType().isVolatileQualified()); |