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 | f3bc75afcfb2bf799776b0f765e145e8cc72d351 (patch) | |
tree | db6a8dad9a8efb4e4d68a161962442a1a08305e9 /clang/lib/CodeGen/CGDecl.cpp | |
parent | 50ad37b6d95cf680aa482cd14419dbb393b69c92 (diff) | |
download | bcm5719-llvm-f3bc75afcfb2bf799776b0f765e145e8cc72d351.tar.gz bcm5719-llvm-f3bc75afcfb2bf799776b0f765e145e8cc72d351.zip |
Since isComplexType() no longer returns true for _Complex integers, the code
generator needs to call isAnyComplexType(). This fixes PR1960.
llvm-svn: 49220
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index a3155c4efa1..3fcd60e7b6f 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/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()); |