File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed 
llvm/lib/Transforms/Instrumentation Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1495,13 +1495,11 @@ static inline bool shouldRecordVTableAddr(GlobalVariable *GV) {
14951495//  FIXME: Introduce an internal alias like what's done for functions to reduce
14961496//  the number of relocation entries.
14971497static  inline  Constant *getVTableAddrForProfData (GlobalVariable *GV) {
1498-   auto  *Int8PtrTy = PointerType::getUnqual (GV->getContext ());
1499- 
15001498  //  Store a nullptr in __profvt_ if a real address shouldn't be used.
15011499  if  (!shouldRecordVTableAddr (GV))
1502-     return  ConstantPointerNull::get (Int8PtrTy );
1500+     return  ConstantPointerNull::get (PointerType::getUnqual (GV-> getContext ()) );
15031501
1504-   return  ConstantExpr::getBitCast (GV, Int8PtrTy) ;
1502+   return  GV ;
15051503}
15061504
15071505void  InstrLowerer::getOrCreateVTableProfData (GlobalVariable *GV) {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments