]> granicus.if.org Git - clang/commitdiff
Remove bitcast to incorrect type.
authorDavid Chisnall <csdavec@swan.ac.uk>
Wed, 25 May 2011 20:33:17 +0000 (20:33 +0000)
committerDavid Chisnall <csdavec@swan.ac.uk>
Wed, 25 May 2011 20:33:17 +0000 (20:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132077 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGObjCGNU.cpp

index 9e6f1ae5bdd2b55fa640c880c47e9b030fdaeab4..0b0ffec448e939b08eaf12d5ac7c4ee6c97daf61 100644 (file)
@@ -2325,7 +2325,7 @@ void CGObjCGNU::EmitObjCIvarAssign(CodeGenFunction &CGF,
                                    llvm::Value *ivarOffset) {
   CGBuilderTy B = CGF.Builder;
   src = EnforceType(B, src, IdTy);
-  dst = EnforceType(B, dst, PtrToIdTy);
+  dst = EnforceType(B, dst, IdTy);
   B.CreateCall3(IvarAssignFn, src, dst, ivarOffset);
 }