search for: __ubsan_union_check_access

Displaying 1 result from an estimated 1 matches for "__ubsan_union_check_access".

2014 Dec 15
4
[LLVMdev] ubsan - active member check for unions
...TRIBUTE 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; store double 4.200000e+01, double* %d, align 8 // injected by sanitizer // __ubsan_union_set_active_field_index(/*union addr*/&s, // /*type desc...