diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-09-03 23:07:53 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-09-03 23:07:53 +0000 |
commit | 087206dbcd41a7c0b42ed4fa97c27cdc5781dcc0 (patch) | |
tree | 0cdac9a909c658d0632e0b111ae6514dabf94610 /clang/lib/CodeGen/CGDecl.cpp | |
parent | 7f2aae99374591badceb805a7cc9b2d17ceecc96 (diff) | |
download | bcm5719-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.cpp | 2 |
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); |