search for: specifictypeloc

Displaying 5 results from an estimated 5 matches for "specifictypeloc".

2012 Nov 30
3
[LLVMdev] [cfe-dev] UB in TypeLoc casting
...type > >>> is not actually an instance of the derived type. The TypeLoc is then > >>> (erroneously) cast to the derived type and the derived type's implicit > >>> copy ctor is executed (so long as you remember to assign the result of > >>> cast<SpecificTypeLoc>), if you copy, otherwise the SpecificTypeLoc's > >>> member functions are actually invoked on a TypeLoc object - bogas, but > >>> it works (because there's no other members in the SpecificTypeLoc > >>> types). > >> > >> Yep. See als...
2012 Dec 05
0
[LLVMdev] [cfe-dev] UB in TypeLoc casting
...t;>> is not actually an instance of the derived type. The TypeLoc is then >> >>> (erroneously) cast to the derived type and the derived type's implicit >> >>> copy ctor is executed (so long as you remember to assign the result of >> >>> cast<SpecificTypeLoc>), if you copy, otherwise the SpecificTypeLoc's >> >>> member functions are actually invoked on a TypeLoc object - bogas, but >> >>> it works (because there's no other members in the SpecificTypeLoc >> >>> types). >> >> >> &g...
2012 Nov 29
2
[LLVMdev] [cfe-dev] UB in TypeLoc casting
...true from classof when the dynamic type >> is not actually an instance of the derived type. The TypeLoc is then >> (erroneously) cast to the derived type and the derived type's implicit >> copy ctor is executed (so long as you remember to assign the result of >> cast<SpecificTypeLoc>), if you copy, otherwise the SpecificTypeLoc's >> member functions are actually invoked on a TypeLoc object - bogas, but >> it works (because there's no other members in the SpecificTypeLoc >> types). > > Yep. See also LLVM's IntrinsicInst. This kind of UB...
2012 Nov 30
0
[LLVMdev] [cfe-dev] UB in TypeLoc casting
...of when the dynamic type >>> is not actually an instance of the derived type. The TypeLoc is then >>> (erroneously) cast to the derived type and the derived type's implicit >>> copy ctor is executed (so long as you remember to assign the result of >>> cast<SpecificTypeLoc>), if you copy, otherwise the SpecificTypeLoc's >>> member functions are actually invoked on a TypeLoc object - bogas, but >>> it works (because there's no other members in the SpecificTypeLoc >>> types). >> >> Yep. See also LLVM's IntrinsicIns...
2013 Feb 11
3
[LLVMdev] [cfe-dev] UB in TypeLoc casting
...s not actually an instance of the derived type. The TypeLoc is then >>> >>> (erroneously) cast to the derived type and the derived type's implicit >>> >>> copy ctor is executed (so long as you remember to assign the result of >>> >>> cast<SpecificTypeLoc>), if you copy, otherwise the SpecificTypeLoc's >>> >>> member functions are actually invoked on a TypeLoc object - bogas, but >>> >>> it works (because there's no other members in the SpecificTypeLoc >>> >>> types). >>> >...