File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -736,7 +736,14 @@ HRESULT ManagedObjectWrapper::QueryInterface(
736736                    return  E_NOINTERFACE;
737737
738738                default :
739+ #if  defined(__clang__) && (__clang_major__ < 14)
740+                     //  NOTE: here the `result == *` of assert is just for avoiding the compiling error
741+                     //  `fallthrough annotation in unreachable code` within debug mode using clang <=13.
742+                     //  Because clang versions before 14 had a bug here.
743+                     _ASSERTE ((result == TryInvokeICustomQueryInterfaceResult::FailedToInvoke) && " Unknown result value"  );
744+ #else 
739745                    _ASSERTE (false  && " Unknown result value"  );
746+ #endif 
740747                    FALLTHROUGH;
741748                case  TryInvokeICustomQueryInterfaceResult::FailedToInvoke:
742749                    //  Set the 'lacks' flag since our attempt to use ICustomQueryInterface
Original file line number Diff line number Diff line change @@ -184,14 +184,6 @@ extern bool g_arm64_atomics_present;
184184#define  __has_cpp_attribute (x ) (0 )
185185#endif 
186186
187- #ifndef  FALLTHROUGH
188- #if  __has_cpp_attribute(fallthrough)
189- #define  FALLTHROUGH  [[fallthrough]]
190- #else  //  __has_cpp_attribute(fallthrough)
191- #define  FALLTHROUGH 
192- #endif  //  __has_cpp_attribute(fallthrough)
193- #endif  //  FALLTHROUGH
194- 
195187/* ****************** PAL-Specific Entrypoints *****************************/ 
196188
197189#define  IsDebuggerPresent  PAL_IsDebuggerPresent
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments