summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-09-02 17:28:31 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-09-02 17:28:31 +0000
commit05bbef63b66047ce1b205d794acfa2c681f1f2e5 (patch)
tree9ad9c820437e37a7eaa694592ff423c4419dd52e /clang/lib/CodeGen
parent5af02b03608530dd2c7c6dae75b8bfe936ec7eba (diff)
downloadbcm5719-llvm-05bbef63b66047ce1b205d794acfa2c681f1f2e5.tar.gz
bcm5719-llvm-05bbef63b66047ce1b205d794acfa2c681f1f2e5.zip
Another i1 vs. i8 type mismatch issue. This time
a 'bool' byref variable in memory. Fixes radar 8382559. llvm-svn: 112835
Diffstat (limited to 'clang/lib/CodeGen')
-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 8ce196b64e8..d4c65e3e744 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