[LLVMdev] BitCast or GEP?
    Rick Mann 
    rmann at latencyzero.com
       
    Mon Jan 28 03:12:47 PST 2013
    
    
  
I have a little simple inheritance thing going on:
%struct.PDFrame = type { i64, i64, i8* }
%struct.PDField = type { %struct.PDFrame, i8 }
Is there any difference between bitcasting a pointer to the struct.PDField to struct.PDFrame, or using GEP to get a pointer to the "super" struct?
I'm not even sure it's possible to bitcast in this situation, but I imagine it should be.
-- 
Rick
    
    
More information about the llvm-dev
mailing list