File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -599,13 +599,15 @@ void DeclPrinter::VisitFunctionDecl(FunctionDecl *D) {
599
599
CXXConversionDecl *ConversionDecl = dyn_cast<CXXConversionDecl>(D);
600
600
CXXDeductionGuideDecl *GuideDecl = dyn_cast<CXXDeductionGuideDecl>(D);
601
601
if (!Policy.SuppressSpecifiers ) {
602
- switch (D->getStorageClass ()) {
603
- case SC_None: break ;
604
- case SC_Extern: Out << " extern " ; break ;
605
- case SC_Static: Out << " static " ; break ;
606
- case SC_PrivateExtern: Out << " __private_extern__ " ; break ;
607
- case SC_Auto: case SC_Register:
608
- llvm_unreachable (" invalid for functions" );
602
+ if (!Policy.SupressStorageClassSpecifiers ) {
603
+ switch (D->getStorageClass ()) {
604
+ case SC_None: break ;
605
+ case SC_Extern: Out << " extern " ; break ;
606
+ case SC_Static: Out << " static " ; break ;
607
+ case SC_PrivateExtern: Out << " __private_extern__ " ; break ;
608
+ case SC_Auto: case SC_Register:
609
+ llvm_unreachable (" invalid for functions" );
610
+ }
609
611
}
610
612
611
613
if (D->isInlineSpecified ()) Out << " inline " ;
You can’t perform that action at this time.
0 commit comments