summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDecl.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-09-03 23:07:53 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-09-03 23:07:53 +0000
commit087206dbcd41a7c0b42ed4fa97c27cdc5781dcc0 (patch)
tree0cdac9a909c658d0632e0b111ae6514dabf94610 /clang/lib/CodeGen/CGDecl.cpp
parent7f2aae99374591badceb805a7cc9b2d17ceecc96 (diff)
downloadbcm5719-llvm-087206dbcd41a7c0b42ed4fa97c27cdc5781dcc0.tar.gz
bcm5719-llvm-087206dbcd41a7c0b42ed4fa97c27cdc5781dcc0.zip
Truncate block variable of bool type to i1 when its
value is used. This matches with non-block variable use of bool type. (Fixes radar 8390062). llvm-svn: 113027
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r--clang/lib/CodeGen/CGDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp
index 5017ce720cb..57e5236c67e 100644
--- a/clang/lib/CodeGen/CGDecl.cpp
+++ b/clang/lib/CodeGen/CGDecl.cpp
@@ -373,7 +373,7 @@ const llvm::Type *CodeGenFunction::BuildByRefType(const ValueDecl *D) {
}
// T x;
- Types.push_back(ConvertType(Ty));
+ Types.push_back(ConvertTypeForMem(Ty));
const llvm::Type *T = llvm::StructType::get(VMContext, Types, Packed);
OpenPOWER on IntegriCloud