From dc944aaf6ae2cfe0783ea84f4cf0f51aa1906c5a Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 25 Feb 2015 02:16:02 +0000 Subject: [PATCH] Add missing MD canonicalization to MS vtable builder git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@230445 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/VTableBuilder.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/AST/VTableBuilder.cpp b/lib/AST/VTableBuilder.cpp index ddb1f057ac..8632ff81fa 100644 --- a/lib/AST/VTableBuilder.cpp +++ b/lib/AST/VTableBuilder.cpp @@ -2930,6 +2930,7 @@ static void GroupNewVirtualOverloads( typedef llvm::DenseMap VisitedGroupIndicesTy; VisitedGroupIndicesTy VisitedGroupIndices; for (const auto *MD : RD->methods()) { + MD = MD->getCanonicalDecl(); VisitedGroupIndicesTy::iterator J; bool Inserted; std::tie(J, Inserted) = VisitedGroupIndices.insert( -- 2.40.0