Minor modern rewriter bug showed up during testing
against a large project.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151395 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Rewrite/RewriteModernObjC.cpp b/lib/Rewrite/RewriteModernObjC.cpp
index 403ccd9..a2dbf9f 100644
--- a/lib/Rewrite/RewriteModernObjC.cpp
+++ b/lib/Rewrite/RewriteModernObjC.cpp
@@ -173,7 +173,7 @@
             break;
           } else {
             // Keep track of all interface declarations seen.
-            ObjCInterfacesSeen.push_back(Class->getCanonicalDecl());
+            ObjCInterfacesSeen.push_back(Class);
             break;
           }
         }