Displaying 1 result from an estimated 1 matches for "activationloc".
2014 Dec 15
4
[LLVMdev] ubsan - active member check for unions
...*Elts[];
};
struct UnionStaticData {
TypeDescriptor *Type;
StringVec* FieldNames;
};
extern "C" SANITIZER_INTERFACE_ATTRIBUTE
void __ubsan_union_set_active_field_index(uptr Addr, const
UnionStaticData *Data,
const SourceLocation *ActivationLoc,
unsigned ActiveFieldIndex);
extern "C" SANITIZER_INTERFACE_ATTRIBUTE
void __ubsan_union_check_access(uptr Addr, const SourceLocation *Loc,
unsigned FieldIndex);
For above code, IR looks like:
// s.d = 42.0;...