File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ TargetInfo::TargetInfo(const llvm::Triple &T) : Triple(T) {
172172  ComplexLongDoubleUsesFP2Ret = false ;
173173
174174  //  Set the C++ ABI based on the triple.
175-   TheCXXABI.set (Triple.isKnownWindowsMSVCEnvironment ()
175+   TheCXXABI.set (Triple.isKnownWindowsMSVCEnvironment () || Triple. isUEFI () 
176176                    ? TargetCXXABI::Microsoft
177177                    : TargetCXXABI::GenericItanium);
178178
Original file line number Diff line number Diff line change 11//  RUN: %clang_cc1 -std=c++2a -fsyntax-only -triple x86_64-windows-msvc -fms-compatibility -fdump-record-layouts %s | FileCheck %s
2+ //  RUN: %clang_cc1 -std=c++2a -fsyntax-only -triple x86_64-uefi -fms-compatibility -fdump-record-layouts %s | FileCheck %s
23
34namespace  Empty  {
45  struct  A  {};
Original file line number Diff line number Diff line change 11//  RUN: %clang_cc1 -std=c++2a %s -verify=unsupported -triple x86_64-linux-gnu
22//  RUN: %clang_cc1 -std=c++2a %s -verify -triple x86_64-windows -fms-compatibility
3+ //  RUN: %clang_cc1 -std=c++2a %s -verify -triple x86_64-uefi -fms-compatibility
34
45[[msvc::no_unique_address]] int  a; //  expected-error {{only applies to non-bit-field non-static data members}} unsupported-warning {{unknown}}
56[[msvc::no_unique_address]] void  f (); //  expected-error {{only applies to non-bit-field non-static data members}} unsupported-warning {{unknown}}
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments