diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp index 289907673df6..60b3db7cb9d9 100644 --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -10416,7 +10416,7 @@ void Sema::DiagnoseHiddenVirtualMethods(CXXMethodDecl *MD) { // Don't diagnose hidden virtual methods in Microsoft extensions mode. if (getLangOpts().MicrosoftExt) - return; + return; if (MD->isInvalidDecl()) return;