]> granicus.if.org Git - clang/commitdiff
Revert "Another i1 vs. i8 type mismatch issue. This time", it breaks some projects.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 3 Sep 2010 00:35:23 +0000 (00:35 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 3 Sep 2010 00:35:23 +0000 (00:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112922 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDecl.cpp
test/CodeGenCXX/reference-in-blocks.cpp

index d4c65e3e7442fb7a1d135a17d46554a7d5acac39..8ce196b64e89ef26d765c3c55dbd87346b2950e2 100644 (file)
@@ -373,7 +373,7 @@ const llvm::Type *CodeGenFunction::BuildByRefType(const ValueDecl *D) {
   }
 
   // T x;
-  Types.push_back(ConvertTypeForMem(Ty));
+  Types.push_back(ConvertType(Ty));
   
   const llvm::Type *T = llvm::StructType::get(VMContext, Types, Packed);
   
index f08ef5688026f2bf1251d3b397552f3a1261d9df..388ec7c4bbca32f6f96f12ab843c52b2a4c816fa 100644 (file)
@@ -41,13 +41,3 @@ int main() {
        a->F();
         return 0;
 }
-
-// rdar://8382559
-namespace radar8382559 {
-  void func(bool& outHasProperty);
-
-  void test() {
-    __attribute__((__blocks__(byref))) bool hasProperty = false;
-    func(hasProperty);
-  }
-}