Add missing MD canonicalization to MS vtable builder
authorReid Kleckner <reid@kleckner.net>
Wed, 25 Feb 2015 02:16:02 +0000 (02:16 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 25 Feb 2015 02:16:02 +0000 (02:16 +0000)
llvm-svn: 230445

clang/lib/AST/VTableBuilder.cpp

index ddb1f05..8632ff8 100644 (file)
@@ -2930,6 +2930,7 @@ static void GroupNewVirtualOverloads(
   typedef llvm::DenseMap<DeclarationName, unsigned> VisitedGroupIndicesTy;
   VisitedGroupIndicesTy VisitedGroupIndices;
   for (const auto *MD : RD->methods()) {
+    MD = MD->getCanonicalDecl();
     VisitedGroupIndicesTy::iterator J;
     bool Inserted;
     std::tie(J, Inserted) = VisitedGroupIndices.insert(