[objc-arc] When we initialize ARCRuntimeEntryPoints, make sure we reset all reference...
authorMichael Gottesman <mgottesman@apple.com>
Sat, 6 Jul 2013 18:43:05 +0000 (18:43 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Sat, 6 Jul 2013 18:43:05 +0000 (18:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185764 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/ObjCARC/ARCRuntimeEntryPoints.h

index d45be82b1f330a1c43a9d0b9dc1b868d865a2bc9..0eafa9fc3e0e554d3b9d83cdfd796de316b0aca4 100644 (file)
@@ -58,6 +58,15 @@ public:
 
   void Initialize(Module *M) {
     TheModule = M;
+    AutoreleaseRV = 0;
+    Release = 0;
+    Retain = 0;
+    RetainBlock = 0;
+    Autorelease = 0;
+    StoreStrong = 0;
+    RetainRV = 0;
+    RetainAutorelease = 0;
+    RetainAutoreleaseRV = 0;
   }
 
   Constant *get(const EntryPointType entry) {