From 86d5f028a43e58f96b4694404f297ce8a2dfd1e9 Mon Sep 17 00:00:00 2001 From: theraven Date: Wed, 19 Sep 2012 12:30:18 +0000 Subject: [PATCH] Don't remove ivar offset variables, even if we aren't using them. --- opts/IvarPass.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/opts/IvarPass.cpp b/opts/IvarPass.cpp index 648901b..c9376fd 100644 --- a/opts/IvarPass.cpp +++ b/opts/IvarPass.cpp @@ -156,7 +156,6 @@ namespace { end=replacements.end() ; i != end ; ++i) { if (i->second) i->first->replaceAllUsesWith(i->second); - i->first->removeFromParent(); } verifyFunction(F); return modified;