From 05bbef63b66047ce1b205d794acfa2c681f1f2e5 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Thu, 2 Sep 2010 17:28:31 +0000 Subject: Another i1 vs. i8 type mismatch issue. This time a 'bool' byref variable in memory. Fixes radar 8382559. llvm-svn: 112835 --- clang/lib/CodeGen/CGDecl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CGDecl.cpp') 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); -- cgit v1.2.3